mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug#40145. Argument for LOAD_FILE() can be too long and sometimes
a query with two or more these functions truncated. Therefore data from each LOAD_FILE() copied into its local variables and then used in a query.
This commit is contained in:
@ -81,8 +81,10 @@ INSERT into t1(name) values('Record_4');
|
||||
--echo ## There should be a difference ##
|
||||
SET @@session.max_allowed_packet= 1024*1024*1024;
|
||||
--replace_result $MYSQLD_LOGFILE MYSQLD_LOGFILE
|
||||
eval select
|
||||
STRCMP(load_file('$MYSQLD_LOGFILE.orig'), load_file('$MYSQLD_LOGFILE.copy'));
|
||||
eval SET @orig_file= load_file('$MYSQLD_LOGFILE.orig');
|
||||
--replace_result $MYSQLD_LOGFILE MYSQLD_LOGFILE
|
||||
eval SET @copy_file= load_file('$MYSQLD_LOGFILE.copy');
|
||||
eval SELECT STRCMP(@orig_file, @copy_file);
|
||||
--remove_file $MYSQLD_LOGFILE.copy
|
||||
--remove_file $MYSQLD_LOGFILE.orig
|
||||
|
||||
|
Reference in New Issue
Block a user