vrana Mon Jul 25 08:02:10 2005 EDT
Modified files:
/phpdoc/en/reference/sqlite/functions sqlite-fetch-column-types.xml
Log:
result_type defaults to SQLITE_ASSOC and is available since PHP 5.1.0
http://cvs.php.net/diff.php/phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml
diff -u phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml:1.8
phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml:1.9
--- phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml:1.8
Sun Feb 20 19:31:07 2005
+++ phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml Mon Jul
25 08:02:10 2005
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<refentry id="function.sqlite-fetch-column-types">
<refnamediv>
<refname>sqlite_fetch_column_types</refname>
@@ -57,7 +57,16 @@
<varlistentry>
<term><parameter>result_type</parameter></term>
<listitem>
- &sqlite.result-type;
+ <para>
+ The optional <parameter>result_type</parameter> parameter accepts a
+ constant and determines how the returned array will be indexed. Using
+ <constant>SQLITE_ASSOC</constant> will return only associative indices
+ (named fields) while <constant>SQLITE_NUM</constant> will return only
+ numerical indices (ordinal field numbers).
+ <constant>SQLITE_BOTH</constant> will return both associative and
+ numerical indices. <constant>SQLITE_ASSOC</constant> is the default for
+ this function.
+ </para>
</listitem>
</varlistentry>
</variablelist>
@@ -72,6 +81,28 @@
&sqlite.case-fold;
</refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.1.0</entry>
+ <entry>Added <parameter>result_type</parameter></entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>