[MCOL-1751] Oracle Compatibility: SELECT IF (...) INTO variable FROM DUAL result in syntax error Created: 2018-09-27 Updated: 2022-11-05 Resolved: 2022-11-05 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 1.2.0 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Minor |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Build tested: Github source /root/columnstore/mariadb-columnstore-server Revert " This reverts commit e8a2a751212a04e835b2b03408132ecbbab52410. /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #565 from drrtuy/ Testing Oracle compatibility feature, using MariaDB 10.3.9 as the reference. SQLMODE has to set as the following: SET SQL_MODE=ORACLE; The following query works in MariaDB 10.3.9, but resulted in syntax error in ColumnStore. SELECT IF (SUBSTR(@msgText, -8) = '\'t exist',1, 0) INTO @expVal 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 'INTO @expVal from DUAL' at line 1 The query would work if I remove the "INTO @EXPVAL" part. I have used "INTO variable" in simpler form queries in many test cases and they worked fine. |
| Comments |
| Comment by Todd Stoffel (Inactive) [ 2022-11-05 ] |
|
This item is being closed because it was well passed the expiration date with no activity. If you suspect this was done in error please create a new ticket. |