Loading...
 
Skip to main content

Features / Usability


SQL strings with > in Where clause Returns Error

I have a DSN name tiki configured to use tiki mysql database
The following string works fine

'' { SQL(db=>tiki) }
select ARTICLEID , TITLE from tiki_articles
where articleID=101
{ SQL }''

but as soon as I use logical operators >, <, => etc

''{ SQL(db=>tiki) }
select ARTICLEID , TITLE from tiki_articles
where articleID>100
{ SQL }''


I get the error message:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';100' at line 2

The same, with my Oracle DSN!! The sql executes normally unless there is an operator > at the where clause.

Does anybody know anything?
Is it a bug?