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

« back to all changes in this revision

Viewing changes to docs/funcref/mysql_free_result.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_free_result" display-name="0">
 
8
      <refmeta>
 
9
        <refentrytitle>mysql_free_result</refentrytitle>
 
10
      </refmeta>
 
11
      <refnamediv>
 
12
        <refname>mysql_free_result</refname>
 
13
        <refpurpose>Frees the memory associated to a result set</refpurpose>
 
14
      </refnamediv>
 
15
      <refsect1 role="description">
 
16
        <methodsynopsis>
 
17
          <type>void</type>
 
18
          <methodname>mysql_free_result</methodname>
 
19
           <methodparam><type>MYSQL_RES *</type><parameter>result</parameter></methodparam>
 
20
 
 
21
        </methodsynopsis>
 
22
        <para>Frees the memory associated to the specified result set.</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>void</para>
 
33
      </refsect1>
 
34
      <refsect1 role="returnvalue">
 
35
        <note>
 
36
          <title></title>
 
37
          <para>You should always free your result set with <function>mysql_free_result()</function> as soon it's not needed anymore</para>
 
38
          <para>Row values obtained by a prior <function>mysql_fetch_row()</function> call will become invalid after calling <function>mysql_free_result()</function>.</para>
 
39
        </note> 
 
40
      </refsect1>
 
41
      <refsect1 role="seealso">
 
42
        <title>See also</title>
 
43
        <para>
 
44
          <function>mysql_store_result()</function>,
 
45
          <function>mysql_use_result()</function>
 
46
        </para>
 
47
      </refsect1>
 
48
    </refentry>