summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2006-03-04 23:04:48 +0300
committerunknown <konstantin@mysql.com>2006-03-04 23:04:48 +0300
commitfb71f423c4053f108048d463df64094aef32c7bc (patch)
treec435bb9dff4411cad34553ae37dbff9da442ae09 /libmysql
parent350475fae41d31c37214705a54bdd93bb435a4f3 (diff)
downloadmariadb-git-fb71f423c4053f108048d463df64094aef32c7bc.tar.gz
Undo the patch for Bug#16144 "mysql_stmt_attr_get type error",
it breaks binary compatibility. The patch will be left intact in 5.1. Warning: this changeset should be null-merged into 5.1. A separate commit in order to push into the release clone of 5.0.19. libmysql/libmysql.c: Undo the patch for Bug#16144 tests/mysql_client_test.c: Undo the patch for Bug#16144
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 99f173aa153..323ddfca36f 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -2822,7 +2822,7 @@ my_bool STDCALL mysql_stmt_attr_get(MYSQL_STMT *stmt,
{
switch (attr_type) {
case STMT_ATTR_UPDATE_MAX_LENGTH:
- *(my_bool*) value= stmt->update_max_length;
+ *(unsigned long *) value= stmt->update_max_length;
break;
case STMT_ATTR_CURSOR_TYPE:
*(ulong*) value= stmt->flags;