Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 847ca14

Browse files
author
Liudmila Mantrova
committed
Doc fix for scheduler - PGPRO-575
1 parent 3a2f460 commit 847ca14

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/src/sgml/pgpro-scheduler.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ SELECT schedule.create_job('{"commands": "SELECT ''zzz''", &
493493
<programlisting>
494494
schedule.submit_job(query := 'select 1');
495495
</programlisting>
496-
<para>Instead of passing <acronym>SQL</acronym> commands directly, you can define numbered placeholders in the <parameter>query</parameter> argument, such as $1 and $2, and pass an array of <acronym>SQL</acronym> commands in the <parameter>params</parameter> argument, with each array element corresponding to a placeholder. For brevity, you can omit the <parameter>query</parameter> and <parameter>params</parameter> names:</para>
496+
<para>Instead of passing <acronym>SQL</acronym> query parameters directly, you can define numbered placeholders in the <parameter>query</parameter> argument, such as $1 and $2, and pass an array of parameters in the <parameter>params</parameter> argument, with each array element corresponding to a placeholder. For brevity, you can omit the <parameter>query</parameter> and <parameter>params</parameter> names:</para>
497497
<programlisting>
498498
schedule.submit_job(query := 'select $1, $2', params := '{&quot;text 1&quot;, &quot;text 2&quot;}')
499499
</programlisting>
@@ -976,10 +976,10 @@ CREATE TYPE schedule.cron_job AS(
976976
<literal>params</literal>
977977
</entry>
978978
<entry>
979-
<type>text</type>
979+
<type>text[]</type>
980980
</entry>
981981
<entry>
982-
An array of <acronym>SQL</acronym> commands.
982+
An array of parameters for the <acronym>SQL</acronym> query.
983983
</entry>
984984
</row>
985985
<row>
@@ -1222,10 +1222,10 @@ CREATE TYPE schedule.cron_job AS(
12221222
<literal>params</literal>
12231223
</entry>
12241224
<entry>
1225-
<type>text</type>
1225+
<type>text[]</type>
12261226
</entry>
12271227
<entry>
1228-
An array of <acronym>SQL</acronym> commands.
1228+
An array of parameters for the <acronym>SQL</acronym> query.
12291229
</entry>
12301230
</row>
12311231
<row>
@@ -2140,7 +2140,7 @@ schedule.create_job(<parameter>dates</parameter> <type>timestamp with time zone[
21402140
</listitem>
21412141
<listitem>
21422142
<para>
2143-
<parameter>params</parameter> &mdash; an array of SQL commands that can
2143+
<parameter>params</parameter> &mdash; an array of parameters for the SQL query that can
21442144
substitute numbered placeholders in the <parameter>query</parameter> argument, such as $1, $2, etc. Default: <literal>NULL</literal>
21452145
</para>
21462146
<para>Type: <type>text[]</type></para>

0 commit comments

Comments
 (0)