> sqlite> select 1 is 2;
> SQL error: near "2": syntax error
> sqlite> select 1 is null;
> 0
> 
> It seems to me the documentation is wrong here. That said I'd 
> much rather the behaviour of sqlite changed to match the docs 
> rather than vice-versa because I really want to write neat 
> queries like:
> 
> select col1 is col2 from table
> 
> Cheers
> 
> Tom Sillence
It looks like you are PRE SQLite version 3.6.19?

D:\SQLite3.6.18> sqlite3
SQLite version 3.6.18
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select 1 is 2;
SQL error: near "2": syntax error
sqlite>


D:\SQLite3> sqlite3
SQLite version 3.6.19
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select 1 is 2;
0
sqlite>

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to