~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 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

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);