~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to examples/client.cc

  • Committer: Lee Bieber
  • Date: 2011-03-23 18:58:39 UTC
  • mfrom: (2246.1.3 build)
  • Revision ID: kalebral@gmail.com-20110323185839-u96hq6u213nexixv
Merge Patrick - Updated dbqp's ld_lib_paths to find the new libdrizzle locations
Merge Monty - Splits out libdrizzle-1.0 and libdrizzle-2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
345
345
            printf("     (NULL)\n");
346
346
          else
347
347
          {
348
 
            printf("     (%zd) %.*s\n", field_sizes[x], (int32_t)field_sizes[x],
 
348
            printf("     (%"PRIu64") %.*s\n", static_cast<uint64_t>(field_sizes[x]), (int32_t)field_sizes[x],
349
349
                   row[x]);
350
350
          }
351
351
        }
409
409
          else if (offset > 0)
410
410
            printf("%.*s", (int32_t)length, field);
411
411
          else
412
 
            printf("     (%zd) %.*s", total, (int32_t)length, field);
 
412
            printf("     (%" PRIu64 " %.*s", (uint64_t)total,
 
413
                            (int32_t)length, field);
413
414
 
414
415
          if (offset + length == total)
415
416
            printf("\n");
439
440
        field_sizes= drizzle_row_field_sizes(&(client_con->result));
440
441
 
441
442
        printf("Row: %" PRId64 "\n",
442
 
               drizzle_row_current(&(client_con->result)));
 
443
               static_cast<uint64_t>(drizzle_row_current(&(client_con->result))));
443
444
 
444
445
        for (x= 0; x < drizzle_result_column_count(&(client_con->result)); x++)
445
446
        {
447
448
            printf("     (NULL)\n");
448
449
          else
449
450
          {
450
 
            printf("     (%zd) %.*s\n", field_sizes[x], (int32_t)field_sizes[x],
 
451
            printf("     (%" PRIu64 " %.*s\n", static_cast<uint64_t>(field_sizes[x]), (int32_t)field_sizes[x],
451
452
                   row[x]);
452
453
          }
453
454
        }
505
506
         "        org_name=%s\n"
506
507
         "         charset=%u\n"
507
508
         "            size=%u\n"
508
 
         "        max_size=%zu\n"
 
509
         "        max_size=%" PRIu64 "\n"
509
510
         "            type=%u\n"
510
511
         "           flags=%u\n\n",
511
512
         drizzle_column_catalog(column), drizzle_column_db(column),
512
513
         drizzle_column_table(column), drizzle_column_orig_table(column),
513
514
         drizzle_column_name(column), drizzle_column_orig_name(column),
514
515
         drizzle_column_charset(column), drizzle_column_size(column),
515
 
         drizzle_column_max_size(column), drizzle_column_type(column),
 
516
         static_cast<uint64_t>(drizzle_column_max_size(column)), drizzle_column_type(column),
516
517
         drizzle_column_flags(column));
517
518
}