mirror of
https://github.com/MariaDB/server.git
synced 2025-11-02 02:53:04 +03:00
Fixed problems with decimals withing IF()
Force add of FN_LIBCHAR to symlinks on windows
This commit is contained in:
@@ -303,14 +303,12 @@ static void dump_remote_log_entries(const char* logname)
|
||||
uint len;
|
||||
NET* net = &mysql->net;
|
||||
if(!position) position = 4; // protect the innocent from spam
|
||||
if(position < 4)
|
||||
{
|
||||
position = 4;
|
||||
// warn the guity
|
||||
fprintf(stderr,
|
||||
"Warning: with the position so small you would hit the magic number\n\
|
||||
Unfortunately, no sweepstakes today, adjusted position to 4\n");
|
||||
}
|
||||
if (position < 4)
|
||||
{
|
||||
position = 4;
|
||||
// warn the guity
|
||||
sql_print_error("Warning: The position in the binary log can't be less than 4.\nStarting from position 4\n");
|
||||
}
|
||||
int4store(buf, position);
|
||||
int2store(buf + 4, binlog_flags);
|
||||
len = (uint) strlen(logname);
|
||||
|
||||
Reference in New Issue
Block a user