Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bin/install_jars.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ call mvn install:install-file -DgroupId=com.pivotal -DartifactId=greenplum-jdbc
call mvn install:install-file -DgroupId=com.pingcap.ticdc.cdc -DartifactId=ticdc-decoder -Dversion=5.2.0-SNAPSHOT -Dpackaging=jar -Dfile=../jars/ticdc-decoder-5.2.0-SNAPSHOT.jar

call mvn install:install-file -DgroupId=io.transwarp -DartifactId=inceptor-driver -Dversion=6.0.2 -Dpackaging=jar -Dfile=../jars/inceptor-driver-6.0.2.jar

call mvn install:install-file -DgroupId=com.alipay.oceanbase -DartifactId=oceanbase-client -Dversion=1.1.5 -Dpackaging=jar -Dfile=../jars/oceanbase-client-1.1.5.jar
3 changes: 3 additions & 0 deletions bin/install_jars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ mvn install:install-file -DgroupId=com.pingcap.ticdc.cdc -DartifactId=ticdc-deco

## inceptor driver
mvn install:install-file -DgroupId=io.transwarp -DartifactId=inceptor-driver -Dversion=6.0.2 -Dpackaging=jar -Dfile=../jars/inceptor-driver-6.0.2.jar

## oceanbase driver
mvn install:install-file -DgroupId=com.alipay.oceanbase -DartifactId=oceanbase-client -Dversion=1.1.5 -Dpackaging=jar -Dfile=../jars/oceanbase-client-1.1.5.jar
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,16 @@ protected Pair<List<String>, List<String>> getTableMetaData() {
* @throws SQLException
*/
protected void queryStartLocation() throws SQLException {
ps = dbConn.prepareStatement(jdbcConf.getQuerySql(), resultSetType, resultSetConcurrency);
// add order by to query SQL avoid duplicate data
StringBuilder updateSqlBuilder = new StringBuilder(128);
updateSqlBuilder.append(jdbcConf.getQuerySql());
updateSqlBuilder
.append(" ORDER BY ")
.append(jdbcDialect.quoteIdentifier(jdbcConf.getIncreColumn()))
.append(" ASC");
ps =
dbConn.prepareStatement(
updateSqlBuilder.toString(), resultSetType, resultSetConcurrency);
ps.setFetchSize(jdbcConf.getFetchSize());
ps.setQueryTimeout(jdbcConf.getQueryTimeOut());
resultSet = ps.executeQuery();
Expand Down
Binary file added jars/oceanbase-client-1.1.5.jar
Binary file not shown.