Bug 81 : ExeUpdateSql.java:parseUpdate fails... with "delete from mytable"
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
1.1.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
24/02/2009
Updated 
24/02/2009
Type 
Bug
 
Attachments 
No attachments

... except for this little bug in ExeUpdateSql.java:parseUpdate (Line: 175)

when i try to execute "delete from table" pos[2] is 0, and sql.substring will crash. i work around this by executing "delete from table ;".

WORKAROUND:
The workaround is to add a space .... "delete from mytable "

 
Rob 25 Feb 10:18
Fixed in HEAD

fixed in HEAD.

woResponse

Upload a file