~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleslap.cc

  • Committer: Brian Aker
  • Date: 2009-02-21 00:18:15 UTC
  • Revision ID: brian@tangent.org-20090221001815-x20e8h71e984lvs1
Completion (?) of uint conversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1946
1946
      if (run_query(drizzle, buffer, strlen(buffer)))
1947
1947
      {
1948
1948
        fprintf(stderr,"%s: Cannot run query %.*s ERROR : %s\n",
1949
 
                my_progname, (uint)ptr->length, ptr->string, drizzleclient_error(drizzle));
 
1949
                my_progname, (uint32_t)ptr->length, ptr->string, drizzleclient_error(drizzle));
1950
1950
        if (!opt_ignore_sql_errors)
1951
1951
          exit(1);
1952
1952
      }
1957
1957
      if (run_query(drizzle, ptr->string, ptr->length))
1958
1958
      {
1959
1959
        fprintf(stderr,"%s: Cannot run query %.*s ERROR : %s\n",
1960
 
                my_progname, (uint)ptr->length, ptr->string, drizzleclient_error(drizzle));
 
1960
                my_progname, (uint32_t)ptr->length, ptr->string, drizzleclient_error(drizzle));
1961
1961
        if (!opt_ignore_sql_errors)
1962
1962
          exit(1);
1963
1963
      }
2011
2011
    if (run_query(drizzle, ptr->string, ptr->length))
2012
2012
    {
2013
2013
      fprintf(stderr,"%s: Cannot run query %.*s ERROR : %s\n",
2014
 
              my_progname, (uint)ptr->length, ptr->string, drizzleclient_error(drizzle));
 
2014
              my_progname, (uint32_t)ptr->length, ptr->string, drizzleclient_error(drizzle));
2015
2015
      exit(1);
2016
2016
    }
2017
2017
    if (!opt_only_print)
2244
2244
        if (run_query(&drizzle, buffer, length))
2245
2245
        {
2246
2246
          fprintf(stderr,"%s: Cannot run query %.*s ERROR : %s\n",
2247
 
                  my_progname, (uint)length, buffer, drizzleclient_error(&drizzle));
 
2247
                  my_progname, (uint32_t)length, buffer, drizzleclient_error(&drizzle));
2248
2248
          exit(1);
2249
2249
        }
2250
2250
      }
2254
2254
      if (run_query(&drizzle, ptr->string, ptr->length))
2255
2255
      {
2256
2256
        fprintf(stderr,"%s: Cannot run query %.*s ERROR : %s\n",
2257
 
                my_progname, (uint)ptr->length, ptr->string, drizzleclient_error(&drizzle));
 
2257
                my_progname, (uint32_t)ptr->length, ptr->string, drizzleclient_error(&drizzle));
2258
2258
        exit(1);
2259
2259
      }
2260
2260
    }
2575
2575
           con->real_users, /* Children used max_timing */
2576
2576
           con->avg_rows  /* Queries run */
2577
2577
           );
2578
 
  my_write(csv_file, (unsigned char*) buffer, (uint)strlen(buffer), MYF(0));
 
2578
  my_write(csv_file, (unsigned char*) buffer, (uint32_t)strlen(buffer), MYF(0));
2579
2579
}
2580
2580
 
2581
2581
void