reference/pgsql/functions/pg-send-prepare.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -10,9 +10,9 @@
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
-
<type>bool</type><methodname>pg_send_prepare</methodname>
14
-
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
15
-
<methodparam><type>string</type><parameter>stmtname</parameter></methodparam>
13
+
<type class="union"><type>int</type><type>bool</type></type><methodname>pg_send_prepare</methodname>
14
+
<methodparam><type>PgSql\Connection</type><parameter>connection</parameter></methodparam>
15
+
<methodparam><type>string</type><parameter>statement_name</parameter></methodparam>
16
16
<methodparam><type>string</type><parameter>query</parameter></methodparam>
17
17
</methodsynopsis>
18
18
<para>
...
...
@@ -36,16 +36,11 @@
36
36
<varlistentry>
37
37
<term><parameter>connection</parameter></term>
38
38
<listitem>
39
-
<para>
40
-
PostgreSQL database connection resource. When
41
-
<parameter>connection</parameter> is not present, the default connection
42
-
is used. The default connection is the last connection made by
43
-
<function>pg_connect</function> or <function>pg_pconnect</function>.
44
-
</para>
39
+
&pgsql.parameter.connection;
45
40
</listitem>
46
41
</varlistentry>
47
42
<varlistentry>
48
-
<term><parameter>stmtname</parameter></term>
43
+
<term><parameter>statement_name</parameter></term>
49
44
<listitem>
50
45
<para>
51
46
The name to give the prepared statement. Must be unique per-connection. If
...
...
@@ -70,8 +65,27 @@
70
65
71
66
<refsect1 role="returnvalues">
72
67
&reftitle.returnvalues;
73
-
<para>Returns &true; on success, &false; on failure. Use <function>pg_get_result</function>
74
-
to determine the query result.</para>
68
+
<para>
69
+
Returns &true; on success, &false; or <literal>0</literal> on failure. Use <function>pg_get_result</function>
70
+
to determine the query result.
71
+
</para>
72
+
</refsect1>
73
+

74
+
<refsect1 role="changelog">
75
+
&reftitle.changelog;
76
+
<informaltable>
77
+
<tgroup cols="2">
78
+
<thead>
79
+
<row>
80
+
<entry>&Version;</entry>
81
+
<entry>&Description;</entry>
82
+
</row>
83
+
</thead>
84
+
<tbody>
85
+
&pgsql.changelog.connection-object;
86
+
</tbody>
87
+
</tgroup>
88
+
</informaltable>
75
89
</refsect1>
76
90

77
91
<refsect1 role="examples">
...
...
@@ -123,7 +137,6 @@
123
137
</para>
124
138
</refsect1>
125
139
</refentry>
126
-

127
140
<!-- Keep this comment at the end of the file
128
141
Local variables:
129
142
mode: sgml
130
143