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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e9b3c971
Commit
e9b3c971
authored
Dec 19, 2013
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.0-base->10.0
parents
06ebc6cc
e1b2de5f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
mysql-test/r/comments.result
mysql-test/r/comments.result
+6
-0
mysql-test/t/comments.test
mysql-test/t/comments.test
+2
-0
sql/sql_lex.cc
sql/sql_lex.cc
+2
-2
No files found.
mysql-test/r/comments.result
View file @
e9b3c971
...
...
@@ -55,6 +55,12 @@ SELECT 1 /*!50999 +1*/;
SELECT 1 /*!99999 +1*/;
1
1
SELECT 1 /*!100000 +1*/;
1 +1
2
SELECT 1 /*!110000 +1*/;
1
1
#
# Tesing that versions >= 5.7.x and < 10.0.0 are not ignored
# when used with the MariaDB executable comment syntax.
...
...
mysql-test/t/comments.test
View file @
e9b3c971
...
...
@@ -38,6 +38,8 @@ SELECT 1 /*!50699 +1*/;
SELECT
1
/*!50700 +1*/
;
SELECT
1
/*!50999 +1*/
;
SELECT
1
/*!99999 +1*/
;
SELECT
1
/*!100000 +1*/
;
SELECT
1
/*!110000 +1*/
;
--
echo
#
--
echo
# Tesing that versions >= 5.7.x and < 10.0.0 are not ignored
...
...
sql/sql_lex.cc
View file @
e9b3c971
...
...
@@ -1563,11 +1563,11 @@ int lex_one_token(void *arg, THD *thd)
/*
MySQL-5.7 has new features and might have new SQL syntax that
MariaDB-10.0 does not understand. Ignore all versioned comments
with MySQL versions in the range 50700
–
999999, but
with MySQL versions in the range 50700
-
999999, but
do not ignore MariaDB specific comments for the same versions.
*/
if
(
version
<=
MYSQL_VERSION_ID
&&
(
version
<
50700
||
version
>
99999
9
||
maria_comment_syntax
))
(
version
<
50700
||
version
>
99999
||
maria_comment_syntax
))
{
/* Accept 'M' 'm' 'm' 'd' 'd' */
lip
->
yySkipn
(
length
);
...
...
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