Skip to content

Commit 16076e6

Browse files
author
Mattias Jonsson
committed
Minor update of test to pass both with and without --ps-protocol
1 parent c13bfe8 commit 16076e6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

mysql-test/r/partition_error.result

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ SELECT * FROM t1;
5555
a
5656
2000-01-02 03:04:05
5757
FLUSH TABLES;
58+
# replacing t1.frm with TO_DAYS(a) which was allowed earlier.
59+
# Disable warnings, since the result would differ when running with
60+
# --ps-protocol (only for the 'SELECT * FROM t1' statement).
5861
SELECT * FROM t1;
5962
a
6063
2000-01-02 03:04:05
61-
Warning 1486 Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
62-
Warnings:
6364
SHOW CREATE TABLE t1;
6465
Table Create Table
6566
t1 CREATE TABLE `t1` (

mysql-test/t/partition_error.test

+5
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,15 @@ INSERT INTO t1 VALUES ('2000-01-02 03:04:05');
7474
--sorted_result
7575
SELECT * FROM t1;
7676
FLUSH TABLES;
77+
--echo # replacing t1.frm with TO_DAYS(a) which was allowed earlier.
7778
--remove_file $MYSQLD_DATADIR/test/t1.frm
7879
--copy_file std_data/parts/t1TIMESTAMP.frm $MYSQLD_DATADIR/test/t1.frm
80+
--echo # Disable warnings, since the result would differ when running with
81+
--echo # --ps-protocol (only for the 'SELECT * FROM t1' statement).
82+
--disable_warnings
7983
--sorted_result
8084
SELECT * FROM t1;
85+
--enable_warnings
8186
SHOW CREATE TABLE t1;
8287
INSERT INTO t1 VALUES ('2001-02-03 04:05:06');
8388
--sorted_result

0 commit comments

Comments
 (0)