~linuxjedi/libdrizzle/5.1-fix-mingw

« back to all changes in this revision

Viewing changes to tests/unit/datetypes.c

  • Committer: Continuous Integration
  • Date: 2013-04-21 22:18:17 UTC
  • mfrom: (109.1.11 date-time)
  • Revision ID: ci@drizzle.org-20130421221817-9c6aysnn1uxg0mmu
Merge lp:~linuxjedi/libdrizzle/date-time Build: jenkins-Libdrizzle-83

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 *
36
36
 */
37
37
 
 
38
#define _GNU_SOURCE
 
39
 
38
40
#include <yatl/lite.h>
39
41
#include "tests/unit/common.h"
40
42
 
276
278
  for (unsigned checking_column = 2; checking_column < 10; checking_column ++) {
277
279
    const char *col_name = column_names[checking_column];
278
280
    char *query_buf = NULL;
279
 
    asprintf(&query_buf, "select a, %s, cast(%s as char) from libdrizzle.dt1",
 
281
    int VARIABLE_IS_NOT_USED unused;
 
282
    unused = asprintf(&query_buf, "select a, %s, cast(%s as char) from libdrizzle.dt1",
280
283
             col_name, col_name);
281
284
    query = query_buf;
282
285