reference/pgsql/functions/pg-send-query.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -1,7 +1,7 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
4
-
<refentry xml:id='function.pg-send-query' xmlns="http://docbook.org/ns/docbook">
4
+
<refentry xml:id="function.pg-send-query" xmlns="http://docbook.org/ns/docbook">
5
5
<refnamediv>
6
6
<refname>pg_send_query</refname>
7
7
<refpurpose>
...
...
@@ -12,8 +12,8 @@
12
12
<refsect1 role="description">
13
13
&reftitle.description;
14
14
<methodsynopsis>
15
-
<type>bool</type><methodname>pg_send_query</methodname>
16
-
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
15
+
<type class="union"><type>int</type><type>bool</type></type><methodname>pg_send_query</methodname>
16
+
<methodparam><type>PgSql\Connection</type><parameter>connection</parameter></methodparam>
17
17
<methodparam><type>string</type><parameter>query</parameter></methodparam>
18
18
</methodsynopsis>
19
19
<para>
...
...
@@ -44,9 +44,7 @@
44
44
<varlistentry>
45
45
<term><parameter>connection</parameter></term>
46
46
<listitem>
47
-
<para>
48
-
PostgreSQL database connection resource.
49
-
</para>
47
+
&pgsql.parameter.connection;
50
48
</listitem>
51
49
</varlistentry>
52
50
<varlistentry>
...
...
@@ -56,8 +54,7 @@
56
54
The SQL statement or statements to be executed.
57
55
</para>
58
56
<para>
59
-
Data inside the query should be <link
60
-
linkend="function.pg-escape-string">properly escaped</link>.
57
+
Data inside the query should be <link linkend="function.pg-escape-string">properly escaped</link>.
61
58
</para>
62
59
</listitem>
63
60
</varlistentry>
...
...
@@ -67,12 +64,29 @@
67
64

68
65
<refsect1 role="returnvalues">
69
66
&reftitle.returnvalues;
70
-
<para>&return.success;</para>
71
67
<para>
72
-
Use <function>pg_get_result</function> to determine the query result.
68
+
Returns &true; on success, &false; or <literal>0</literal> on failure. Use <function>pg_get_result</function>
69
+
to determine the query result.
73
70
</para>
74
71
</refsect1>
75
72

73
+
<refsect1 role="changelog">
74
+
&reftitle.changelog;
75
+
<informaltable>
76
+
<tgroup cols="2">
77
+
<thead>
78
+
<row>
79
+
<entry>&Version;</entry>
80
+
<entry>&Description;</entry>
81
+
</row>
82
+
</thead>
83
+
<tbody>
84
+
&pgsql.changelog.connection-object;
85
+
</tbody>
86
+
</tgroup>
87
+
</informaltable>
88
+
</refsect1>
89
+
76
90
<refsect1 role="examples">
77
91
&reftitle.examples;
78
92
<para>
...
...
@@ -125,7 +139,6 @@ Resource id #4 has 1 records
125
139
</para>
126
140
</refsect1>
127
141
</refentry>
128
-

129
142
<!-- Keep this comment at the end of the file
130
143
Local variables:
131
144
mode: sgml
132
145