diff options
author | unknown <konstantin@mysql.com> | 2006-01-18 15:15:09 +0300 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2006-01-18 15:15:09 +0300 |
commit | f9bef505ece36b992c17d38c2c6714504d66d1b3 (patch) | |
tree | 615bbf8a236ace6dcc24da1dee532712f102f681 /tests | |
parent | 596666f74a83e989edb712eab9949d2a13c08fac (diff) | |
parent | 22bc685dbf3769e4df9aedf139635c8b85bdeb37 (diff) | |
download | mariadb-git-f9bef505ece36b992c17d38c2c6714504d66d1b3.tar.gz |
Merge mysql.com:/opt/local/work/mysql-4.1-root
into mysql.com:/opt/local/work/mysql-5.0-root
BitKeeper/etc/ignore:
auto-union
libmysql/Makefile.shared:
Auto merged
configure.in:
Manual merge.
libmysql/libmysql.c:
Manual merge.
tests/mysql_client_test.c:
Manual merge.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 216961b3a80..c4da624537d 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -14624,6 +14624,24 @@ static void test_bug15510() myquery(rc); } +/* Bug #16144: mysql_stmt_attr_get type error */ + +static void test_bug16144() +{ + const my_bool flag_orig= (my_bool) 0xde; + my_bool flag= flag_orig; + MYSQL_STMT *stmt; + myheader("test_bug16144"); + + /* Check that attr_get returns correct data on little and big endian CPUs */ + stmt= mysql_stmt_init(mysql); + mysql_stmt_attr_set(stmt, STMT_ATTR_UPDATE_MAX_LENGTH, (const void*) &flag); + mysql_stmt_attr_get(stmt, STMT_ATTR_UPDATE_MAX_LENGTH, (void*) &flag); + DIE_UNLESS(flag == flag_orig); + + mysql_stmt_close(stmt); +} + /* Read and parse arguments and MySQL options from my.cnf */ @@ -14884,6 +14902,7 @@ static struct my_tests_st my_tests[]= { { "test_bug13524", test_bug13524 }, { "test_bug14845", test_bug14845 }, { "test_bug15510", test_bug15510}, + { "test_bug16144", test_bug16144 }, { 0, 0 } }; |