3320
3311
drizzle_con_st *con= &cur_con->con;
3322
3313
global_error_names.clear();
3326
3316
if (drizzle_query_str(con, &res, ds_query.c_str(), &ret) == NULL ||
3327
3317
ret != DRIZZLE_RETURN_OK)
3329
3319
if (ret == DRIZZLE_RETURN_ERROR_CODE)
3321
die("Error running query '%s': %d %s", ds_query.c_str(), drizzle_result_error_code(&res), drizzle_result_error(&res));
3337
die("Error running query '%s': %d %s", ds_query.c_str(), ret,
3325
die("Error running query '%s': %d %s", ds_query.c_str(), ret, drizzle_con_error(con));
3341
3328
if (drizzle_result_column_count(&res) == 0 ||