Fix NULL handling in PostgreSQL driver.

This commit is contained in:
Alexander Korotkov
2016-09-16 20:02:57 +03:00
parent ccd9845321
commit e5e6ccb8d1

View File

@ -519,7 +519,7 @@ int pgsql_drv_execute(db_stmt_t *stmt, db_result_set_t *rs)
/* Convert SysBench bind structures to PgSQL data */
for (i = 0; i < (unsigned)pgstmt->nparams; i++)
{
if (stmt->bound_param[i].is_null)
if (stmt->bound_param[i].is_null && *(stmt->bound_param[i].is_null))
continue;
switch (stmt->bound_param[i].type) {