summaryrefslogtreecommitdiffstats
path: root/mysql-test/main/unusable_keys_literals.inc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:00:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:00:34 +0000
commit3f619478f796eddbba6e39502fe941b285dd97b1 (patch)
treee2c7b5777f728320e5b5542b6213fd3591ba51e2 /mysql-test/main/unusable_keys_literals.inc
parentInitial commit. (diff)
downloadmariadb-upstream.tar.xz
mariadb-upstream.zip
Adding upstream version 1:10.11.6.upstream/1%10.11.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/main/unusable_keys_literals.inc')
-rw-r--r--mysql-test/main/unusable_keys_literals.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/main/unusable_keys_literals.inc b/mysql-test/main/unusable_keys_literals.inc
new file mode 100644
index 00000000..e19baa16
--- /dev/null
+++ b/mysql-test/main/unusable_keys_literals.inc
@@ -0,0 +1,14 @@
+--enable_prepare_warnings
+SELECT * FROM t1 WHERE indexed_col=20230101;
+SELECT * FROM t1 WHERE indexed_col=20230101102030;
+SELECT * FROM t1 WHERE indexed_col=20230101102030.1;
+SELECT * FROM t1 WHERE indexed_col=20230101102030.1e0;
+SELECT * FROM t1 WHERE indexed_col='10:20:30';
+SELECT * FROM t1 WHERE indexed_col='2001-01-01';
+SELECT * FROM t1 WHERE indexed_col='2001-01-01 10:20:30';
+SELECT * FROM t1 WHERE indexed_col=DATE'2001-01-01';
+SELECT * FROM t1 WHERE indexed_col=TIME'10:20:30';
+SELECT * FROM t1 WHERE indexed_col=TIMESTAMP'2001-01-01 10:20:30';
+SELECT * FROM t1 WHERE indexed_col=0x00;
+SELECT * FROM t1 WHERE indexed_col=_utf8mb3'0' COLLATE utf8mb3_bin;
+--disable_prepare_warnings