Skip to content

Commit

Permalink
supportsTransactionId, so it gets tested
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed May 6, 2008
1 parent 074f6d0 commit c3936d0
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,17 @@ public class PostgreSqlDbDialect extends AbstractDbDialect implements IDbDialect

static final String SYNC_TRIGGERS_DISABLED_USER_VARIABLE = "explain_pretty_print";

private boolean supportsTransactionId = false;

private String transactionIdExpression = "null";

protected void initForSpecificDialect() {
if (getMajorVersion() >= 8 && getMinorVersion() >= 3) {
logger.info("Enabling transaction ID support");
supportsTransactionId = true;
transactionIdExpression = TRANSACTION_ID_EXPRESSION;
}
}

protected boolean allowsNullForIdentityColumn() {
return false;
}

@Override
protected boolean doesTriggerExistOnPlatform(String catalogName, String schema, String tableName, String triggerName) {
Expand Down Expand Up @@ -111,6 +110,14 @@ public boolean storesLowerCaseNamesInCatalog() {
return true;
}

protected boolean allowsNullForIdentityColumn() {
return false;
}

public boolean supportsTransactionId() {
return supportsTransactionId;
}

public void purge() {
}

Expand Down

0 comments on commit c3936d0

Please sign in to comment.