1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

more test fixes

This commit is contained in:
Georg Richter
2013-03-13 21:43:39 +01:00
parent d1b93bd17e
commit 7afc51d9aa
7 changed files with 19 additions and 9 deletions

View File

@@ -46,6 +46,10 @@ MYSQL_STMT *open_cursor(MYSQL *mysql, const char *query)
MYSQL_STMT *stmt= mysql_stmt_init(mysql);
rc= mysql_stmt_prepare(stmt, query, strlen(query));
if (rc) {
diag("Error: %s", mysql_stmt_error(stmt));
return NULL;
}
mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void*) &type);
return stmt;
}