Hi guys,
I have UPDATE sql statement with ORDER BY in my app and it stopped working (in simulator and in android device too)
Is there any change in DB implementation which can cause such a behavior?
This is my statement:
String[] params = new String[2];
params[0] = iduser;
params[1] = fsname;
db.execute("UPDATE TSUSET SET FMSETT = FMSETT + 1 WHERE (IDUSER = ? OR IDUSER = 'ALL') and FSNAME= ? ORDER BY CASE IDUSER WHEN 'ALL' THEN 2 ELSE 1 END LIMIT 1", params);
params are correctly entered
Previously it was working but now I'm getting error: syntax error near ORDER
Thanks