Re: [sqlite] Minor odd behaviour in sql parsing (maybe a bug?)

2010-03-01 Thread WClark
>> The following sql is supposedly valid: >> >> select 1 in (1)'hello'; > > Apparently this gets interpreted as > > select (1 in (1)) as "hello"; > >("as" is optional), under SQLite's long-standing policy of > accepting single and double quotes more or less > interchangeably. Hmm, I'd not have g

Re: [sqlite] Minor odd behaviour in sql parsing (maybe a bug?)

2010-03-01 Thread Igor Tandetnik
wcl...@gfs-hofheim.de wrote: > The following sql is supposedly valid: > > select 1 in (1)'hello'; Apparently this gets interpreted as select (1 in (1)) as "hello"; ("as" is optional), under SQLite's long-standing policy of accepting single and double quotes more or less interchangeably. -- Ig

[sqlite] Minor odd behaviour in sql parsing (maybe a bug?)

2010-03-01 Thread WClark
Hi, I spotted this while looking into something else for Alexey: The following sql is supposedly valid: select 1 in (1)'hello'; where as select * from t where 1 in (1)'hello'; returns "Error: near "'hello'": syntax error" (which I would expect!) This occurs on v3.6.22, but I haven't checked