Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
99df09ec
Commit
99df09ec
authored
Feb 20, 2017
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-12086 sql_mode=ORACLE: allow SELECT UNIQUE as a synonym for SELECT DISTINCT
parent
af7f287b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
mysql-test/suite/compat/oracle/r/misc.result
mysql-test/suite/compat/oracle/r/misc.result
+12
-0
mysql-test/suite/compat/oracle/t/misc.test
mysql-test/suite/compat/oracle/t/misc.test
+10
-0
sql/sql_yacc_ora.yy
sql/sql_yacc_ora.yy
+1
-0
No files found.
mysql-test/suite/compat/oracle/r/misc.result
0 → 100644
View file @
99df09ec
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;
mysql-test/suite/compat/oracle/t/misc.test
0 → 100644
View file @
99df09ec
SET
sql_mode
=
ORACLE
;
--
echo
#
--
echo
# MDEV-12086 sql_mode=ORACLE: allow SELECT UNIQUE as a synonym for SELECT DISTINCT
--
echo
#
CREATE
TABLE
t1
(
a
INT
);
INSERT
INTO
t1
VALUES
(
10
),(
20
),(
20
),(
30
),(
30
),(
30
);
SELECT
UNIQUE
a
FROM
t1
;
DROP
TABLE
t1
;
sql/sql_yacc_ora.yy
View file @
99df09ec
...
@@ -16194,6 +16194,7 @@ query_expression_option:
...
@@ -16194,6 +16194,7 @@ query_expression_option:
Select->options|= SELECT_HIGH_PRIORITY;
Select->options|= SELECT_HIGH_PRIORITY;
}
}
| DISTINCT { Select->options|= SELECT_DISTINCT; }
| DISTINCT { Select->options|= SELECT_DISTINCT; }
| UNIQUE_SYM { Select->options|= SELECT_DISTINCT; }
| SQL_SMALL_RESULT { Select->options|= SELECT_SMALL_RESULT; }
| SQL_SMALL_RESULT { Select->options|= SELECT_SMALL_RESULT; }
| SQL_BIG_RESULT { Select->options|= SELECT_BIG_RESULT; }
| SQL_BIG_RESULT { Select->options|= SELECT_BIG_RESULT; }
| SQL_BUFFER_RESULT
| SQL_BUFFER_RESULT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment