提交 c912e491 authored 作者: ebocher's avatar ebocher

Add foo alias to support subquery with postgresql linked table

上级 458dd3d8
...@@ -445,7 +445,7 @@ public class TableLink extends Table { ...@@ -445,7 +445,7 @@ public class TableLink extends Table {
@Override @Override
public synchronized long getRowCount(Session session) { public synchronized long getRowCount(Session session) {
String sql = "SELECT COUNT(*) FROM " + qualifiedTableName; String sql = "SELECT COUNT(*) FROM " + qualifiedTableName + " as foo";
try { try {
PreparedStatement prep = execute(sql, null, false); PreparedStatement prep = execute(sql, null, false);
ResultSet rs = prep.getResultSet(); ResultSet rs = prep.getResultSet();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论