~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/mysqltest.cc

  • Committer: Brian Aker
  • Date: 2008-07-15 08:57:01 UTC
  • Revision ID: brian@tangent.org-20080715085701-h7i77in02mqsg2sv
Commit cleanup of export types.

Show diffs side-by-side

added added

removed removed

Lines of Context:
603
603
    fprintf(stderr, "=== %s ===\n", query);
604
604
    while ((row= mysql_fetch_row(res)))
605
605
    {
606
 
      unsigned long *lengths= mysql_fetch_lengths(res);
 
606
      uint32_t *lengths= mysql_fetch_lengths(res);
607
607
      row_num++;
608
608
 
609
609
      fprintf(stderr, "---- %d. ----\n", row_num);
672
672
    fprintf(stderr, "\nWarnings from just before the error:\n");
673
673
    while ((row= mysql_fetch_row(res)))
674
674
    {
675
 
      unsigned int i;
676
 
      unsigned long *lengths= mysql_fetch_lengths(res);
 
675
      uint32_t i;
 
676
      uint32_t *lengths= mysql_fetch_lengths(res);
677
677
 
678
678
      if (++row_num >= mysql_num_rows(res))
679
679
      {
1853
1853
      and assign that string to the $variable
1854
1854
    */
1855
1855
    DYNAMIC_STRING result;
1856
 
    uint i;
1857
 
    ulong *lengths;
 
1856
    uint32_t i;
 
1857
    uint32_t *lengths;
1858
1858
 
1859
1859
    init_dynamic_string(&result, "", 512, 512);
1860
1860
    lengths= mysql_fetch_lengths(res);
4948
4948
static void append_result(DYNAMIC_STRING *ds, MYSQL_RES *res)
4949
4949
{
4950
4950
  MYSQL_ROW row;
4951
 
  uint num_fields= mysql_num_fields(res);
 
4951
  uint32_t num_fields= mysql_num_fields(res);
4952
4952
  MYSQL_FIELD *fields= mysql_fetch_fields(res);
4953
 
  ulong *lengths;
 
4953
  uint32_t *lengths;
4954
4954
 
4955
4955
  while ((row = mysql_fetch_row(res)))
4956
4956
  {
4957
 
    uint i;
 
4957
    uint32_t i;
4958
4958
    lengths = mysql_fetch_lengths(res);
4959
4959
    for (i = 0; i < num_fields; i++)
4960
4960
      append_field(ds, i, &fields[i],