1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-12086 sql_mode=ORACLE: allow SELECT UNIQUE as a synonym for SELECT DISTINCT

This commit is contained in:
Alexander Barkov
2017-02-20 19:30:58 +04:00
parent af7f287b3b
commit 99df09ecab
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,12 @@
SET sql_mode=ORACLE;
#
# MDEV-12086 sql_mode=ORACLE: allow SELECT UNIQUE as a synonym for SELECT DISTINCT
#
CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (10),(20),(20),(30),(30),(30);
SELECT UNIQUE a FROM t1;
a
10
20
30
DROP TABLE t1;