diff options
author | venu@myvenu.com <> | 2003-01-31 13:43:38 -0800 |
---|---|---|
committer | venu@myvenu.com <> | 2003-01-31 13:43:38 -0800 |
commit | 5c1d2a562630aae203dac2d2b10bd5820a0d0af7 (patch) | |
tree | ba0b70dcdfd8723be0265fd84349967c91c5fa3e /libmysql | |
parent | 83ae58564f3cda79196f6d9b3f29a06c27053b98 (diff) | |
download | mariadb-git-5c1d2a562630aae203dac2d2b10bd5820a0d0af7.tar.gz |
Few misc cases check from PHP - client_test
Fix the buffer_length ovveride when length ptr is NULL - libmysql
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 */ |