mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-13844 : Fix Windows warnings. Fix DBUG_PRINT.
- Fix win64 pointer truncation warnings (usually coming from misusing 0x%lx and long cast in DBUG) - Also fix printf-format warnings Make the above mentioned warnings fatal. - fix pthread_join on Windows to set return value.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user