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

91
+
<refsect1 role="changelog">
92
+
&reftitle.changelog;
93
+
<informaltable>
94
+
<tgroup cols="2">
95
+
<thead>
96
+
<row>
97
+
<entry>&Version;</entry>
98
+
<entry>&Description;</entry>
99
+
</row>
100
+
</thead>
101
+
<tbody>
102
+
&pgsql.changelog.return-result-object;
103
+
&pgsql.changelog.connection-object;
104
+
</tbody>
105
+
</tgroup>
106
+
</informaltable>
107
+
</refsect1>
108
+
96
109
<refsect1 role="examples">
97
110
&reftitle.examples;
98
111
<para>
99
112