1
by brian
clean slate |
1 |
#
|
2 |
# This is a regression test for bug #2526 "--init-file crashes MySQL if it |
|
3 |
# contains a large select"
|
|
4 |
#
|
|
5 |
# See mysql-test/std_data/init_file.dat and |
|
6 |
# mysql-test/t/init_file-master.opt for the actual test |
|
7 |
#
|
|
8 |
||
9 |
#
|
|
10 |
# Bug#23240 --init-file statements with NOW() reports '1970-01-01 11:00:00'as the date time |
|
11 |
#
|
|
12 |
INSERT INTO init_file.startup VALUES ( NOW() ); |
|
13 |
SELECT * INTO @X FROM init_file.startup limit 0,1; |
|
14 |
SELECT * INTO @Y FROM init_file.startup limit 1,1; |
|
15 |
SELECT YEAR(@X)-YEAR(@Y); |
|
16 |
DROP DATABASE init_file; |
|
17 |
||
18 |
--echo ok |
|
19 |
--echo end of 4.1 tests |
|
20 |
#
|
|
21 |
# Chec 5.x features |
|
22 |
#
|
|
23 |
# Expected: |
|
24 |
# 3, 5, 7, 11, 13 |
|
25 |
select * from t1; |
|
26 |
# Expected: |
|
27 |
# 30, 3, 11, 13 |
|
28 |
select * from t2; |
|
29 |
drop table t1, t2; |