~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.cc

  • Committer: Andrew Hutchings
  • Date: 2010-10-25 10:22:50 UTC
  • mto: (1883.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1884.
  • Revision ID: andrew@linuxjedi.co.uk-20101025102250-kivg4xm5s08vg6x6
Use size_t for command in drizzle.cc
Don't SIGPIPE when server disconnects during send()

Show diffs side-by-side

added added

removed removed

Lines of Context:
340
340
static uint32_t delimiter_length= 1;
341
341
unsigned short terminal_width= 80;
342
342
 
343
 
int drizzleclient_real_query_for_lazy(const char *buf, int length,
 
343
int drizzleclient_real_query_for_lazy(const char *buf, size_t length,
344
344
                                      drizzle_result_st *result,
345
345
                                      uint32_t *error_code);
346
346
int drizzleclient_store_result_for_lazy(drizzle_result_st *result);
2669
2669
 The different commands
2670
2670
***************************************************************************/
2671
2671
 
2672
 
int drizzleclient_real_query_for_lazy(const char *buf, int length,
 
2672
int drizzleclient_real_query_for_lazy(const char *buf, size_t length,
2673
2673
                                      drizzle_result_st *result,
2674
2674
                                      uint32_t *error_code)
2675
2675
{