diff options
author | unknown <venu@myvenu.com> | 2003-01-31 13:43:38 -0800 |
---|---|---|
committer | unknown <venu@myvenu.com> | 2003-01-31 13:43:38 -0800 |
commit | 28f3c41f498a72c67c44c02c5bc7899b89a7ecb4 (patch) | |
tree | ba0b70dcdfd8723be0265fd84349967c91c5fa3e /libmysql | |
parent | dbb025e4ba118a3b57d4f0f58072f9b8ffaea1dd (diff) | |
download | mariadb-git-28f3c41f498a72c67c44c02c5bc7899b89a7ecb4.tar.gz |
Few misc cases check from PHP - client_test
Fix the buffer_length ovveride when length ptr is NULL - libmysql
libmysql/libmysql.c:
Fix the buffer_length ovveride when length ptr is NULL
tests/client_test.c:
Few misc cases check from PHP
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 376f21a8a78..28a35da4f72 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -4377,6 +4377,7 @@ my_ulonglong STDCALL mysql_stmt_affected_rows(MYSQL_STMT *stmt) static my_bool int_is_null_true= 1; /* Used for MYSQL_TYPE_NULL */ static my_bool int_is_null_false= 0; static my_bool int_is_null_dummy; +static unsigned long param_length_is_dummy; /* Setup the parameter data buffers from application @@ -5062,7 +5063,7 @@ my_bool STDCALL mysql_bind_result(MYSQL_STMT *stmt, MYSQL_BIND *bind) param->is_null= &int_is_null_dummy; if (!param->length) - param->length= ¶m->buffer_length; + param->length= ¶m_length_is_dummy; param->param_number= param_count++; /* Setup data copy functions for the different supported types */ |