mysql_client_test.c:
Post fix for the bug#29948.
This commit is contained in:
parent
1cc8f0e383
commit
222fddcb79
@ -15746,7 +15746,7 @@ static void test_bug29948()
|
|||||||
char kill_buf[20];
|
char kill_buf[20];
|
||||||
const char *query;
|
const char *query;
|
||||||
int buf;
|
int buf;
|
||||||
unsigned long length;
|
unsigned long length, cursor_type;
|
||||||
|
|
||||||
dbc = mysql_init(NULL);
|
dbc = mysql_init(NULL);
|
||||||
DIE_UNLESS(dbc);
|
DIE_UNLESS(dbc);
|
||||||
@ -15779,8 +15779,8 @@ static void test_bug29948()
|
|||||||
stmt= mysql_stmt_init(dbc);
|
stmt= mysql_stmt_init(dbc);
|
||||||
check_stmt(stmt);
|
check_stmt(stmt);
|
||||||
|
|
||||||
buf= CURSOR_TYPE_READ_ONLY;
|
cursor_type= CURSOR_TYPE_READ_ONLY;
|
||||||
res= mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void *)&buf);
|
res= mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void *)&cursor_type);
|
||||||
myquery(res);
|
myquery(res);
|
||||||
|
|
||||||
query= "SELECT * from t1 where a=?";
|
query= "SELECT * from t1 where a=?";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user