~maria-captains/mariadb-native-client/trunk

« back to all changes in this revision

Viewing changes to docs/funcref/mysql_fetch_row.xml

  • Committer: Georg Richter
  • Date: 2012-11-26 10:23:56 UTC
  • Revision ID: georg@linux-eozo-20121126102356-llqrnqevaypb2nc6
- Added documentation (docbook based)
- To build the documentation use cmake . -DBUILD_DOCS=yes
- minor fixes in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='UTF-8'?>
 
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
 
3
               "docbook/dtd/xml/4.2/docbookx.dtd" [
 
4
<!ENTITY % global_ents SYSTEM "../global.ent">
 
5
%global_ents;
 
6
]>
 
7
    <refentry id="functions.mysql_fetch_row" display-name="0">
 
8
      <refmeta>
 
9
        <refentrytitle>mysql_fetch_row</refentrytitle>
 
10
      </refmeta>
 
11
      <refnamediv>
 
12
        <refname>mysql_fetch_row</refname>
 
13
        <refpurpose>Get a row from result set</refpurpose>
 
14
      </refnamediv>
 
15
      <refsect1 role="description">
 
16
        <methodsynopsis>
 
17
          <type>MYSQL_ROW</type>
 
18
          <methodname>mysql_fetch_row</methodname>
 
19
           <methodparam><type>MYSQL_RES *</type><parameter>result</parameter></methodparam>
 
20
 
 
21
        </methodsynopsis>
 
22
        <para>Fetches one row of data from the result set and returns it as an array of char pointers (<parameter>MYSQL_ROW</parameter>), where each column is stored in an offset starting from 0 (zero). Each subsequent call to this function will return the next row within the result set, or <parameter>NULL</parameter> if there are no more rows. </para>
 
23
      </refsect1>
 
24
      <refsect1 role="parameters">
 
25
        <title>Parameters</title>
 
26
          <variablelist>
 
27
           <varlistentry><term><parameter>result</parameter></term><listitem><para>&param.result;</para></listitem></varlistentry>
 
28
          </variablelist>
 
29
      </refsect1>
 
30
      <refsect1 role="returnvalue">
 
31
        <title>Return value</title>
 
32
        <para>Returns an array of strings that corresponds to the fetched row or NULL if there are no more rows in result set.</para>
 
33
      </refsect1>
 
34
      <refsect1 role="returnvalue">
 
35
        <note>
 
36
          <title></title>
 
37
          <para>Im case a column contains a <parameter>NULL</parameter> value the corresponding char pointer will be set to <parameter>NULL</parameter></para>
 
38
          <para>Memory associated to MYSQL_ROW will be freed when calling <function>mysql_free_result()</function> function.</para>
 
39
        </note> 
 
40
      </refsect1>
 
41
      <refsect1 role="seealso">
 
42
        <title>See also</title>
 
43
        <para>
 
44
          <function>mysql_use_result()</function>, <function>mysql_store_result()</function>
 
45
        </para>
 
46
      </refsect1>
 
47
    </refentry>