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

« back to all changes in this revision

Viewing changes to docs/examples/unbuffered.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 first thing that is sent back in the results is a list of
9
9
columns, so this list needs to be retieved.  The simplist way of doing this is
10
10
to buffer the column data using :c:func:`drizzle_column_buffer`.
51
51
        return EXIT_FAILURE;
52
52
      }
53
53
 
54
 
      result= drizzle_query_str(con, "select * from libdrizzle.t1", &ret);
 
54
      result= drizzle_query(con, "select * from libdrizzle.t1", 0, &ret);
55
55
      if (ret != DRIZZLE_RETURN_OK)
56
56
      {
57
57
        printf("Select failure\n");