Skip to content

Commit 87f83da

Browse files
authored
Merge pull request #1313 from stupidxian/master
解决了postgresql连接类型查询时不支持分页的问题
2 parents 3aa1232 + 9b557a5 commit 87f83da

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

data-providers/jdbc-data-provider/src/main/resources/jdbc-driver.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ POSTGRESQL:
145145
name: POSTGRESQL
146146
driver-class: org.postgresql.Driver
147147
url-prefix: jdbc:postgresql://
148+
sql-dialect: datart.data.provider.calcite.dialect.PostgresqlSqlDialectSupport
148149

149150
PRESTO:
150151
db-type: PRESTO
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package datart.data.provider.calcite.dialect;
2+
3+
import org.apache.calcite.sql.dialect.PostgresqlSqlDialect;
4+
5+
public class PostgresqlSqlDialectSupport extends PostgresqlSqlDialect implements FetchAndOffsetSupport{
6+
7+
public PostgresqlSqlDialectSupport() {
8+
this(DEFAULT_CONTEXT);
9+
}
10+
private PostgresqlSqlDialectSupport(Context context) { super(context); }
11+
12+
}

0 commit comments

Comments
 (0)