summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-10-02 22:35:13 +0400
committerAlexander Barkov <bar@mariadb.org>2017-10-02 22:35:13 +0400
commit8ae8cd63485eb063de0b70ea6f3acf7102a61fef (patch)
tree70fa448baa769b6c8c331063a61bf929ad61c976 /libmysqld
parent6857cb57fe7090f131b272f31485b7a478a0b324 (diff)
parent387bdf07ae0973bc3e4dc3f5064d2a29c64bb769 (diff)
downloadmariadb-git-8ae8cd63485eb063de0b70ea6f3acf7102a61fef.tar.gz
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/libmysql.c10
-rw-r--r--libmysqld/libmysqld.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/libmysqld/libmysql.c b/libmysqld/libmysql.c
index d06b32b0625..767afed06b1 100644
--- a/libmysqld/libmysql.c
+++ b/libmysqld/libmysql.c
@@ -2053,9 +2053,9 @@ static my_bool store_param(MYSQL_STMT *stmt, MYSQL_BIND *param)
{
NET *net= &stmt->mysql->net;
DBUG_ENTER("store_param");
- DBUG_PRINT("enter",("type: %d buffer: 0x%lx length: %lu is_null: %d",
+ DBUG_PRINT("enter",("type: %d buffer:%p length: %lu is_null: %d",
param->buffer_type,
- (long) (param->buffer ? param->buffer : NullS),
+ param->buffer,
*param->length, *param->is_null));
if (*param->is_null)
@@ -2979,8 +2979,8 @@ mysql_stmt_send_long_data(MYSQL_STMT *stmt, uint param_number,
MYSQL_BIND *param;
DBUG_ENTER("mysql_stmt_send_long_data");
DBUG_ASSERT(stmt != 0);
- DBUG_PRINT("enter",("param no: %d data: 0x%lx, length : %ld",
- param_number, (long) data, length));
+ DBUG_PRINT("enter",("param no: %d data: %p, length : %ld",
+ param_number, data, length));
/*
We only need to check for stmt->param_count, if it's not null
@@ -3249,7 +3249,7 @@ static void fetch_string_with_conversion(MYSQL_BIND *param, char *value,
ulong copy_length;
if (start < end)
{
- copy_length= end - start;
+ copy_length= (ulong)(end - start);
/* We've got some data beyond offset: copy up to buffer_length bytes */
if (param->buffer_length)
memcpy(buffer, start, MY_MIN(copy_length, param->buffer_length));
diff --git a/libmysqld/libmysqld.c b/libmysqld/libmysqld.c
index 36728cf573c..d1771a09578 100644
--- a/libmysqld/libmysqld.c
+++ b/libmysqld/libmysqld.c
@@ -205,7 +205,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
}
}
- DBUG_PRINT("exit",("Mysql handler: 0x%lx", (long) mysql));
+ DBUG_PRINT("exit",("Mysql handler: %p", mysql));
DBUG_RETURN(mysql);
error: