Yu Xu created CALCITE-7322:
------------------------------

             Summary: The POSITION function in SQLite is missing the FROM clause
                 Key: CALCITE-7322
                 URL: https://issues.apache.org/jira/browse/CALCITE-7322
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.41.0
            Reporter: Yu Xu
            Assignee: Yu Xu
             Fix For: 1.42.0


POSITION function would convert to 'instr' in MySQL dialect,but instr function 
would lost the the third paramter 'from clause'

origin sql:

 
{code:java}
select POSITION('a' in 'bbacdac' from 4) {code}
 

 

in MysqlDialect would convert to:

 
{code:java}
select INSTR('bbacdac', 'a')
{code}
which lost the 'from clause':  '4'.

 

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to