提交 2af5a914 authored 作者: Thomas Mueller's avatar Thomas Mueller

For some queries, the exception did not include the SQL statement. Example:…

For some queries, the exception did not include the SQL statement. Example: select x from system_range(1, 2) group by 'a'.
上级 247fa5f8
...@@ -131,6 +131,7 @@ public abstract class Command implements CommandInterface { ...@@ -131,6 +131,7 @@ public abstract class Command implements CommandInterface {
session.setCurrentCommand(this, startTime); session.setCurrentCommand(this, startTime);
return query(maxrows); return query(maxrows);
} catch (DbException e) { } catch (DbException e) {
e.addSQL(sql);
database.exceptionThrown(e.getSQLException(), sql); database.exceptionThrown(e.getSQLException(), sql);
throw e; throw e;
} finally { } finally {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论