1
0
mirror of https://github.com/MariaDB/server.git synced 2025-06-13 13:01:51 +03:00

A fix and a test case for Bug#16144 "mysql_stmt_attr_get type error":

use the right type in mysql_stmt_attr_get


libmysql/libmysql.c:
  Fix Bug#16144 "mysql_stmt_attr_get type error"
tests/mysql_client_test.c:
  A test case for Bug#16144
This commit is contained in:
unknown
2006-01-17 23:19:43 +03:00
parent 16d16b9582
commit 22bc685dbf
2 changed files with 21 additions and 1 deletions

View File

@ -2733,7 +2733,7 @@ my_bool STDCALL mysql_stmt_attr_get(MYSQL_STMT *stmt,
{
switch (attr_type) {
case STMT_ATTR_UPDATE_MAX_LENGTH:
*(unsigned long *) value= stmt->update_max_length;
*(my_bool*) value= stmt->update_max_length;
break;
default:
return TRUE;