reference/pgsql/functions/pg-prepare.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -11,8 +11,8 @@
11
11
<refsect1 role="description">
12
12
&reftitle.description;
13
13
<methodsynopsis>
14
-
<type>resource</type><methodname>pg_prepare</methodname>
15
-
<methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam>
14
+
<type class="union"><type>PgSql\Result</type><type>false</type></type><methodname>pg_prepare</methodname>
15
+
<methodparam choice="opt"><type>PgSql\Connection</type><parameter>connection</parameter></methodparam>
16
16
<methodparam><type>string</type><parameter>stmtname</parameter></methodparam>
17
17
<methodparam><type>string</type><parameter>query</parameter></methodparam>
18
18
</methodsynopsis>
...
...
@@ -48,12 +48,7 @@
48
48
<varlistentry>
49
49
<term><parameter>connection</parameter></term>
50
50
<listitem>
51
-
<para>
52
-
PostgreSQL database connection resource. When
53
-
<parameter>connection</parameter> is not present, the default connection
54
-
is used. The default connection is the last connection made by
55
-
<function>pg_connect</function> or <function>pg_pconnect</function>.
56
-
</para>
51
+
&pgsql.parameter.connection-with-unspecified-default;
57
52
</listitem>
58
53
</varlistentry>
59
54
<varlistentry>
...
...
@@ -83,10 +78,28 @@
83
78
<refsect1 role="returnvalues">
84
79
&reftitle.returnvalues;
85
80
<para>
86
-
A query result resource on success&return.falseforfailure;.
81
+
An <classname>PgSql\Result</classname> instance on success, &return.falseforfailure;.
87
82
</para>
88
83
</refsect1>
89
84

85
+
<refsect1 role="changelog">
86
+
&reftitle.changelog;
87
+
<informaltable>
88
+
<tgroup cols="2">
89
+
<thead>
90
+
<row>
91
+
<entry>&Version;</entry>
92
+
<entry>&Description;</entry>
93
+
</row>
94
+
</thead>
95
+
<tbody>
96
+
&pgsql.changelog.return-result-object;
97
+
&pgsql.changelog.connection-object;
98
+
</tbody>
99
+
</tgroup>
100
+
</informaltable>
101
+
</refsect1>
102
+
90
103
<refsect1 role="examples">
91
104
&reftitle.examples;
92
105
<para>
93
106