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

« back to all changes in this revision

Viewing changes to docs/funcref/mysql_stmt_fetch.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_stmt_fetch" display-name="0">
 
8
      <refmeta>
 
9
        <refentrytitle>mysql_stmt_fetch</refentrytitle>
 
10
      </refmeta>
 
11
      <refnamediv>
 
12
        <refname>mysql_stmt_fetch</refname>
 
13
        <refpurpose>Fetches result buffer into bound buffer</refpurpose>
 
14
      </refnamediv>
 
15
      <refsect1 role="description">
 
16
        <methodsynopsis>
 
17
          <type>int</type>
 
18
          <methodname>mysql_stmt_fetch</methodname>
 
19
           <methodparam><type>MYSQL_STMT *</type><parameter>stmt</parameter></methodparam>
 
20
        </methodsynopsis>
 
21
        <para>Fetch the result from a prepared statement into the buffer bound by <function>mysql_stmt_bind_result()</function>.</para>
 
22
      </refsect1>
 
23
      <refsect1 role="parameters">
 
24
        <title>Parameters</title>
 
25
          <variablelist>
 
26
           <varlistentry><term><parameter>stmt</parameter></term><listitem><para>&param.stmt;</para></listitem></varlistentry>
 
27
 
 
28
          </variablelist>
 
29
      </refsect1>
 
30
      <refsect1 role="returnvalue">
 
31
        <title>Return value</title>
 
32
          <para>Returns one of the following values</para>
 
33
            <variablelist>
 
34
               <varlistentry><term>0</term><listitem><para>Success</para></listitem></varlistentry>
 
35
               <varlistentry><term>MYSQL_NO_DATA</term><listitem><para>End of result set reached</para></listitem></varlistentry>
 
36
               <varlistentry><term>MYSQL_DATA_TRUNCATION</term><listitem><para>One or more values are truncated</para></listitem></varlistentry>
 
37
            </variablelist>
 
38
      </refsect1>
 
39
      <refsect1 role="notes">
 
40
        <note>
 
41
          <title></title>
 
42
          <para>Note that all columns must be bound by the application before calling <function>mysql_stmt_fetch()</function>.</para>
 
43
          <para>Data are transferred unbuffered without calling <function>mysql_stmt_store_result()</function> which can decrease performance (but reduces memory cost).</para> 
 
44
        </note> 
 
45
      </refsect1>
 
46
      <refsect1 role="seealso">
 
47
        <title>See also</title>
 
48
        <para><function>mysql_stmt_prepare()</function>, <function>mysql_stmt_bind_result()</function>, <function>mysql_stmt_execute()</function></para>
 
49
      </refsect1>
 
50
    </refentry>