1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for server bug experienced in Maria (wrong "Truncated incorrect <var_name>

value" error even though the value was correct): a C function in my_getopt.c
was taking bool* in parameter and was called from C++ sql_plugin.cc,
but on some Mac OS X sizeof(bool) is 1 in C and 4 in C++, giving funny
mismatches. Fixed, all other occurences of bool in C are removed, future
ones are blocked by a "C-bool-catcher" in my_global.h (use my_bool).
This commit is contained in:
guilhem@gbichot4.local
2008-02-18 23:29:39 +01:00
parent ccd53222d6
commit 9e2b31b026
28 changed files with 82 additions and 78 deletions

View File

@ -16861,16 +16861,16 @@ static void bug20023_change_user(MYSQL *con)
opt_db ? opt_db : "test"));
}
static bool query_int_variable(MYSQL *con,
const char *var_name,
int *var_value)
static my_bool query_int_variable(MYSQL *con,
const char *var_name,
int *var_value)
{
MYSQL_RES *rs;
MYSQL_ROW row;
char query_buffer[MAX_TEST_QUERY_LENGTH];
bool is_null;
my_bool is_null;
my_snprintf(query_buffer,
sizeof (query_buffer),
@ -17049,7 +17049,7 @@ static void bug31418_impl()
{
MYSQL con;
bool is_null;
my_bool is_null;
int rc;
/* Create a new connection. */