diff options
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/jdbc')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/jdbc/PostgresqlSupportStrategy.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/PostgresqlSupportStrategy.java b/src/main/java/com/amazon/carbonado/repo/jdbc/PostgresqlSupportStrategy.java index fffa5cf..43623be 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/PostgresqlSupportStrategy.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/PostgresqlSupportStrategy.java @@ -25,11 +25,16 @@ package com.amazon.carbonado.repo.jdbc; * @since 1.2
*/
class PostgresqlSupportStrategy extends JDBCSupportStrategy {
+
private static final String TRUNCATE_STATEMENT = "TRUNCATE TABLE %s";
+ private static final String DEFAULT_SEQUENCE_SELECT_STATEMENT = "SELECT NEXTVAL('%s')";
+
protected PostgresqlSupportStrategy(JDBCRepository repo) {
super(repo);
+ setSequenceSelectStatement(DEFAULT_SEQUENCE_SELECT_STATEMENT);
+
setTruncateTableStatement(TRUNCATE_STATEMENT);
}
|