Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
10.3(EOL)
-
None
Description
set sql_mode=oracle; |
MariaDB [test]> SELECT 5%5 from dual; |
ERROR 1064 (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 '%5 from dual' at line 1 |
MariaDB [test]> wait_timeout:=102411111%1023;
|
ERROR 1064 (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 '%1023' at line 1 |
MariaDB [test]> select 1 from seq_1_to_2 where seq % 5; |
ERROR 1324 (42000): Undefined CURSOR: seq |
Without oracle mode it works properly:
MariaDB [test]> select 1 from seq_1_to_2 where seq % 5; |
+---+ |
| 1 |
|
+---+ |
| 1 |
|
| 1 |
|
+---+ |
2 rows in set (0.00 sec) |
 |
MariaDB [test]> SELECT 5%5; |
+------+ |
| 5%5 |
|
+------+ |
| 0 |
|
+------+ |
1 row in set (0.00 sec) |
Attachments
Issue Links
- is caused by
-
MDEV-10582 sql_mode=ORACLE: Explicit cursor attributes %ISOPEN, %ROWCOUNT, %FOUND, %NOTFOUND
- Closed
- relates to
-
MDEV-12962 Testing MDEV-10142 (PL/SQL parser)
- Open