alibaba82
17 years agoSuper Contributor
Groovy Question sql.execute
Hello,
I have a groovy statement
boolean status = sql.execute("UPDATE dbo.aspnet_Membership set IsApproved = 1 where LoweredEmail=${Email}");
I check the database and verify that the update actually happened. However, regardless of the outcome the sql.execute() always seems to return 'false'. Do you if I am doing any thing wrong.
I want to throw an exception if it returns false and dont throw any exception if it returns true. but at the moment I cant figure out how to throw true.
Thanks
Ali
I have a groovy statement
boolean status = sql.execute("UPDATE dbo.aspnet_Membership set IsApproved = 1 where LoweredEmail=${Email}");
I check the database and verify that the update actually happened. However, regardless of the outcome the sql.execute() always seems to return 'false'. Do you if I am doing any thing wrong.
I want to throw an exception if it returns false and dont throw any exception if it returns true. but at the moment I cant figure out how to throw true.
Thanks
Ali