xorm icon indicating copy to clipboard operation
xorm copied to clipboard

ShowSQL show bad SQL as well

Open happilymarrieddad opened this issue 4 years ago • 2 comments

Is it possible to show bad SQL as well? I've noticed that when a SQL statement fails it's not outputted to the console. Is it possible to always show the SQL statement regardless of whether it is successful?

happilymarrieddad avatar Jul 17 '19 22:07 happilymarrieddad

If the error returned before executing SQL, the SQL will not be print. I will check if we can move it before.

lunny avatar Jul 18 '19 01:07 lunny

@lunny that would be REALLY helpful. If you can do that I would really appreciate it. Thanks for taking the time to look into this!

happilymarrieddad avatar Jul 18 '19 15:07 happilymarrieddad