X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Futils%2Fdbi.c;h=73fc6b77a4e2582b431ac109a1e9147f66535360;hb=52c636cb7309660115f4024821588a173a7ff69a;hp=b1fdaf127896aaf35863ec1a8cfd208c62982d6d;hpb=e6fca772f02564a63847bb2103ad754f1a42ffae;p=sysdb.git diff --git a/src/utils/dbi.c b/src/utils/dbi.c index b1fdaf1..73fc6b7 100644 --- a/src/utils/dbi.c +++ b/src/utils/dbi.c @@ -194,7 +194,7 @@ sdb_dbi_get_data(sdb_dbi_client_t *client, dbi_result res, sdb_dbi_strerror(client->conn)); return -1; } - types[i] = DBI_TYPE_TO_SC(types[i]); + types[i] = DBI_TYPE_TO_SDB(types[i]); } num_rows = dbi_result_get_numrows(res); @@ -497,7 +497,7 @@ sdb_dbi_exec_query(sdb_dbi_client_t *client, const char *query, unsigned int type = va_arg(types, unsigned int); - field_type = DBI_TYPE_TO_SC(field_type); + field_type = DBI_TYPE_TO_SDB(field_type); /* column count starts at 1 */ if ((unsigned int)field_type != type) {