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
I don't believe the mysql library returns the final escaped SQL except on an error. If you catch an error, .sql on the error object will contain the SQL statement executed. I'll see if there is a way to bring that data back for a successful query.
I don't believe the mysql library returns the final escaped SQL except on an error.
It does, you can use this.sql inside the callback function to get the final SQL query, regardless of whether an error occurs or not, as in this example exerpt:
Is there a way to console.log the final query?
Is there a way to know what the final sql query looked like ?
Thanks
The text was updated successfully, but these errors were encountered: