提交 25b8313e authored 作者: noelgrandin@gmail.com's avatar noelgrandin@gmail.com

make some of the UnsupportedException messages a little more obvious

上级 13d7033a
......@@ -615,16 +615,16 @@ public class Select extends Query {
if (isForUpdateMvcc) {
if (isGroupQuery) {
throw DbException.getUnsupportedException(
"FOR UPDATE && GROUP");
"MVCC=TRUE && FOR UPDATE && GROUP");
} else if (distinct) {
throw DbException.getUnsupportedException(
"FOR UPDATE && DISTINCT");
"MVCC=TRUE && FOR UPDATE && DISTINCT");
} else if (isQuickAggregateQuery) {
throw DbException.getUnsupportedException(
"FOR UPDATE && AGGREGATE");
"MVCC=TRUE && FOR UPDATE && AGGREGATE");
} else if (topTableFilter.getJoin() != null) {
throw DbException.getUnsupportedException(
"FOR UPDATE && JOIN");
"MVCC=TRUE && FOR UPDATE && JOIN");
}
}
topTableFilter.lock(session, exclusive, exclusive);
......
......@@ -1200,7 +1200,7 @@ public class DataType {
return o;
}
}
throw DbException.getUnsupportedException(paramClass.getName());
throw DbException.getUnsupportedException("converting to class " + paramClass.getName());
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论