mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
114e5b8ddb
- Starting time of a query sent by file bootstrapping wasn't initialized and starting time defaulted to 0. This later used value by the Now- item and is translated to 1970-01-01 11:00:00. - marking the time with thd->set_time() before the call to mysql_parse resolves this issue. mysql-test/r/init_file.result: Appended test case mysql-test/std_data/init_file.dat: Appended test case mysql-test/t/init_file.test: Appended test case
9 lines
241 B
Text
9 lines
241 B
Text
INSERT INTO init_file.startup VALUES ( NOW() );
|
|
SELECT * INTO @X FROM init_file.startup limit 0,1;
|
|
SELECT * INTO @Y FROM init_file.startup limit 1,1;
|
|
SELECT YEAR(@X)-YEAR(@Y);
|
|
YEAR(@X)-YEAR(@Y)
|
|
0
|
|
DROP DATABASE init_file;
|
|
ok
|
|
End of 4.1 tests
|