Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-11275 sql_mode=ORACLE: CAST(..AS VARCHAR(N))
- Loading branch information
Alexander Barkov
committed
Apr 5, 2017
1 parent
f8a714c
commit c0576ba
Showing
5 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SET sql_mode=ORACLE; | ||
# | ||
# MDEV-11275 sql_mode=ORACLE: CAST(..AS VARCHAR(N)) | ||
# | ||
SELECT CAST(123 AS VARCHAR(10)) FROM DUAL; | ||
CAST(123 AS VARCHAR(10)) | ||
123 | ||
SELECT CAST(123 AS VARCHAR) FROM DUAL; | ||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') FROM DUAL' at line 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SET sql_mode=ORACLE; | ||
|
||
--echo # | ||
--echo # MDEV-11275 sql_mode=ORACLE: CAST(..AS VARCHAR(N)) | ||
--echo # | ||
|
||
SELECT CAST(123 AS VARCHAR(10)) FROM DUAL; | ||
--error ER_PARSE_ERROR | ||
SELECT CAST(123 AS VARCHAR) FROM DUAL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters