summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorJim Winstead <jimw@mysql.com>2009-12-16 12:48:53 -0800
committerJim Winstead <jimw@mysql.com>2009-12-16 12:48:53 -0800
commit4400809407e1515169f474c382978df6e8817757 (patch)
treec51ed841b8a0e68d8c3468f215b67649c577dd5b /libmysql
parent4338e06f518aa1d5e4c621b80a5b265afb603f61 (diff)
parentf20d15d07faa14a865148e6d965a908138e36bbf (diff)
downloadmariadb-git-4400809407e1515169f474c382978df6e8817757.tar.gz
Merge approved bug fix
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 36b1d9cac72..aa314e79260 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -2270,7 +2270,7 @@ mysql_stmt_param_metadata(MYSQL_STMT *stmt)
/* Store type of parameter in network buffer. */
-static void store_param_type(char **pos, MYSQL_BIND *param)
+static void store_param_type(unsigned char **pos, MYSQL_BIND *param)
{
uint typecode= param->buffer_type | (param->is_unsigned ? 32768 : 0);
int2store(*pos, typecode);
@@ -2550,7 +2550,7 @@ int cli_stmt_execute(MYSQL_STMT *stmt)
that is sent to the server.
*/
for (param= stmt->params; param < param_end ; param++)
- store_param_type((char**) &net->write_pos, param);
+ store_param_type(&net->write_pos, param);
}
for (param= stmt->params; param < param_end; param++)