~drizzle-trunk/libdrizzle/jenkins-Libdrizzle-39

« back to all changes in this revision

Viewing changes to docs/examples/buffered.rst

  • Committer: Continuous Integration
  • Date: 2013-01-10 22:17:55 UTC
  • mfrom: (85.1.1 5.1-query)
  • Revision ID: ci@drizzle.org-20130110221755-9uxwfxrz1afhu3aq
Merge lp:~linuxjedi/libdrizzle/5.1-query Build: jenkins-Libdrizzle-39

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
Introduction
5
5
------------
6
6
 
7
 
In this example :c:func:`drizzle_query_str` is used to send a select query to a
 
7
In this example :c:func:`drizzle_query` is used to send a select query to a
8
8
MySQL server.  The whole result set is then retrieved and stored in memory
9
9
using :c:func:`drizzle_result_buffer`.
10
10
 
49
49
        return EXIT_FAILURE;
50
50
      }
51
51
 
52
 
      result= drizzle_query_str(con, "select * from libdrizzle.t1", &ret);
 
52
      result= drizzle_query(con, "select * from libdrizzle.t1", 0, &ret);
53
53
      if (ret != DRIZZLE_RETURN_OK)
54
54
      {
55
55
        printf("Select failure\n");