put a try/catch around the ec.saveChanges(), and catch the
EOGeneralAdaptorException. Then log out the contents of the
exception.userInfo() ...... somewhere in there is the SQL error that
the database gave you back.
Alternatively, turn on MySQL statement logging for all statements to
see what the database sees....... by putting sth like this in your
my.cnf:
log=/var/log/mysql.log
and then tail -f on that file.
HTH, Kieran
On Feb 21, 2007, at 12:34 PM, James Cicenia wrote:
I get this error:
[2007-02-21 11:32:49 CST] <WorkerThread2>
com.webobjects.foundation.NSForwardException for
com.webobjects.eoaccess.EOGeneralAdaptorException:
updateValuesInRowDescribedByQualifier --
com.webobjects.jdbcadaptor.JDBCChannel method failed to update row
in database
It seems like no matter how many enabled debugging, wo arguments,
etc., I can't get it to show me my sql?!
What is the trick?
Thanks
James Cicenia
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%
40mac.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]