reference/sqlite3/sqlite3/query.xml
855bfee2f3db70d7dbb4c60c7c4a4efa567f1c60
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="sqlite3.query" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>SQLite3::query</refname>
...
...
@@ -9,13 +8,15 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
13
-
<modifier>public</modifier> <type>SQLite3Result</type><methodname>SQLite3::query</methodname>
11
+
<methodsynopsis role="SQLite3">
12
+
<modifier>public</modifier> <type class="union"><type>SQLite3Result</type><type>false</type></type><methodname>SQLite3::query</methodname>
14
13
<methodparam><type>string</type><parameter>query</parameter></methodparam>
15
14
</methodsynopsis>
16
15
<para>
17
-
Executes an SQL query, returning an <classname>SQLite3Result</classname> object if the query
18
-
returns results.
16
+
Executes an SQL query, returning an <classname>SQLite3Result</classname> object.
17
+
If the query does not yield a result (such as DML statements) the returned
18
+
<classname>SQLite3Result</classname> object is not really usable.
19
+
Use <methodname>SQLite3::exec</methodname> for such queries instead.
19
20
</para>
20
21
</refsect1>
21
22

...
...
@@ -39,8 +40,7 @@
39
40
<refsect1 role="returnvalues">
40
41
&reftitle.returnvalues;
41
42
<para>
42
-
Returns an <classname>SQLite3Result</classname> object if the query returns results. Otherwise,
43
-
returns &true; if the query succeeded, &false; on failure.
43
+
Returns an <classname>SQLite3Result</classname> object, &return.falseforfailure;.
44
44
</para>
45
45
</refsect1>
46
46

...
...
@@ -66,7 +66,6 @@ while ($row = $results->fetchArray()) {
66
66
</refsect1>
67
67

68
68
</refentry>
69
-

70
69
<!-- Keep this comment at the end of the file
71
70
Local variables:
72
71
mode: sgml
73
72