I am facing the following issue while invoking selectSQL templet for MY SQL Database
Cannot execute the SQL statement “SELECT t1.x1,t1.x2,t1x3,t1.x4,t1.x5,t1.x6,t1.x7,t1.x8,t1.x9,t1.x10 FROM table t1 WHERE (t1.9 = ‘New’ ) ORDER BY 1 ASC”.
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 ‘OPTION SQL_SELECT_LIMIT=10’ at line 1
I am selecting top 10 rows ordered in Ascending on t1.x1 value.
The statement that i have posted is from error log(Its a SQLselect Templet). If I am giving max rows as ‘0’ its working fine.But when i am giving ‘5’ or ‘10’ its throwing an error.
I replicated the same connection in PROD and its working fine, but not working in QUAL.Both the servers have same configuration same Patches installed,