Skip to content

Commit

Permalink
0003437: Create first data gap to begin with 1 instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpmind-josh committed Feb 20, 2018
1 parent b76a12c commit 2a3949f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Expand Up @@ -20,6 +20,8 @@
*/
package org.jumpmind.symmetric.db.raima;

import java.sql.Types;

import org.jumpmind.db.platform.IDatabasePlatform;
import org.jumpmind.db.platform.PermissionType;
import org.jumpmind.db.sql.ISqlTransaction;
Expand Down Expand Up @@ -110,6 +112,11 @@ public String getSyncTriggersExpression() {
public void cleanDatabase() {
}

@Override
public int getSqlTypeForIds() {
return Types.BIGINT;
}

@Override
public boolean isClobSyncSupported() {
return false;
Expand Down
Expand Up @@ -2094,7 +2094,7 @@ public List<DataGap> findDataGaps() {
// or the largest known data id that was already routed.
lastGapStartId = Math.max(minDataId, maxRoutedDataId);
}
if (lastGapStartId > 0) {
if (lastGapStartId > -1) {
lastGapStartId++;
}
DataGap gap = new DataGap(lastGapStartId, lastGapStartId + maxDataToSelect);
Expand Down

0 comments on commit 2a3949f

Please sign in to comment.