SFSDBManager.executeUpdate() bugged

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
ericheimburg
Posts: 26
Joined: 18 Mar 2010, 07:25

SFSDBManager.executeUpdate() bugged

Post by ericheimburg »

I think I've found a pretty serious bug in executeUpdate... the version that takes parameters doesn't process the parameters at all.

Code: Select all

String tempName = "temp-" + tempID++;
db.executeUpdate("INSERT INTO account SET username=?, password='', email=''", new Object[]{tempName});
This causes an error:
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 '?, password='', email=''' at line 1
It's like it isn't turning the ? into the symbols at all.

executeQuery() does work... this is specifically executeUpdate.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

It is a known bug, already in top priority for the next update.
Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply