scala-sql-dsl icon indicating copy to clipboard operation
scala-sql-dsl copied to clipboard

Issue with parser

Open conikeec opened this issue 11 years ago • 1 comments

Tried this with SQL parser and does not seem to work

import com.log4p.sqldsl._ import QueryBuilder._ import AnsiSqlRenderer._

val p = new SQLParser val q = """select * from user where name in ('pe''ter','petrus')"""

val query = p.parser(q).get

[1.8] failure: from' expected but*' found

select * from user where name in ('pe''ter','petrus')

Also tried val q = """select age from user where name in ('pe''ter','petrus')"""

[1.33] failure: <=' expected buti' found

select age from user where name in ('pe''ter','petrus')

Am I missing anything here

conikeec avatar Jun 21 '13 20:06 conikeec

The in clause does not appear to work, I have ran into this as well.

johntbush avatar Aug 27 '14 04:08 johntbush