You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be good to be able to pull the specific query that caused the error from the SQLException class. For example:
beginids=ids.join(",")db.execute("SELECT * FROM table WHERE id IN(#{ids});")rescueSQLite3::SQLException=>elog.errore.message# near ",": syntax error# (WTF?)log.debuge.query# SELECT * FROM table WHERE id IN(,1,2,3,4);# (oh, right there's a nil entry in the array)end
Gives some context to the particular SQL error that happened, assisting in troubleshooting code. I would submit a pull request, but I can't see in the code where I could set a attribute on the exception class (looks like it's done from C?).
Cheers
The text was updated successfully, but these errors were encountered:
Would be good to be able to pull the specific query that caused the error from the SQLException class. For example:
Gives some context to the particular SQL error that happened, assisting in troubleshooting code. I would submit a pull request, but I can't see in the code where I could set a attribute on the exception class (looks like it's done from C?).
Cheers
The text was updated successfully, but these errors were encountered: