~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to examples/pipe_query.cc

  • Committer: Lee Bieber
  • Date: 2011-03-29 21:04:17 UTC
  • mfrom: (2253.1.2 trunk-gcc-4.6)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: kalebral@gmail.com-20110329210417-pqw4ll0hq5e32z9u
Merge Andrew - 743842: Build failure using GCC 4.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
  char *password= NULL;
57
57
  char *buffer= NULL;
58
58
  size_t buffer_size= 0;
59
 
  size_t buffer_total= 0;
60
59
  ssize_t read_size= 0;
61
60
  drizzle_st drizzle;
62
61
  drizzle_con_st *con= (drizzle_con_st*)malloc(sizeof(drizzle_con_st));
148
147
      return 1;
149
148
    }
150
149
 
151
 
    buffer_total= buffer_size + BUFFER_CHUNK;
152
150
  } while ((read_size= read(0, buffer + buffer_size, BUFFER_CHUNK)) != 0);
153
151
 
154
152
  (void)drizzle_query(con, &result, buffer, buffer_size, &ret);