Quote from
noyzen on June 16, 2023, 1:30 pm
Thank you guys for help,
@luishp I have tried without variable, almost tried anything possible :)
Well, I found this kind of code is working:
"DELETE FROM mytable WHERE field1 = 'test' AND field2 = ? AND id IN (SELECT id FROM mytable ORDER BY id ASC LIMIT 2)";
That one works, but in Answer subroutine I get empty [data] callback variable, but it works.
It's getting more wired when exact same code but with LIMIT 1 is not working. everything above LIMIT 2 is ok!
(I have checked database and records are fine there)
I'm still trying to find how to solve the problem. I let you guys know...
Thank you guys for help,
@luishp I have tried without variable, almost tried anything possible :)
Well, I found this kind of code is working:
"DELETE FROM mytable WHERE field1 = 'test' AND field2 = ? AND id IN (SELECT id FROM mytable ORDER BY id ASC LIMIT 2)";
That one works, but in Answer subroutine I get empty [data] callback variable, but it works.
It's getting more wired when exact same code but with LIMIT 1 is not working. everything above LIMIT 2 is ok!
(I have checked database and records are fine there)
I'm still trying to find how to solve the problem. I let you guys know...