[MCOL-1390] SUBSTRING_INDEX returns NULL when the number parameter is negative Created: 2018-05-04 Updated: 2018-05-22 Resolved: 2018-05-22 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr |
| Affects Version/s: | 1.1.4 |
| Fix Version/s: | 1.1.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Epic Link: | ColumnStore Compatibility Improvements |
| Sprint: | 2018-10, 2018-11 |
| Description |
|
Build tested: 1.1.4-1 Reference: select cidx, CCHAR1, SUBSTRING_INDEX(CCHAR1,'a',-3) from datatypetestm order by cidx cidx CCHAR1 SUBSTRING_INDEX(CCHAR1,'a',-3) ColumnStore select cidx, CCHAR1, SUBSTRING_INDEX(CCHAR1,'a',-3) from datatypetestm order by cidx |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2018-05-10 ] | ||||||
|
Pull request for engine and regression suite (to fix the SUBSTRING_INDEX test results) | ||||||
| Comment by Daniel Lee (Inactive) [ 2018-05-22 ] | ||||||
|
Build verified: 1.1.5-1 source [root@localhost ~]# cat mariadb-columnstore-1.1.5-1-centos7.x86_64.bin.tar.gz.txt Merge pull request #112 from mariadb-corporation/davidhilldallas-patch-3 update to 1.1.5 /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #475 from drrtuy/ Reproduced issue in 1.1.4-1 and verified fix. MariaDB [mytest]> create table t1 (idx int, cchar1 char(1)) engine=columnstore; MariaDB [mytest]> insert into t1 values (1,'a'); MariaDB [mytest]> select idx, cchar1, substring_index(cchar1, 'a', -3) from t1;
-----
----- |