Skip to content

Commit

Permalink
[ 1924351 ] Reserved keyword on column fails sync trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Mar 24, 2008
1 parent 876be5d commit b487bf5
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -381,7 +381,7 @@ protected void determineAutoIncrementFromResultSetMetaData(Table table, final Co
query.append(",");
if (getPlatform().isDelimitedIdentifierModeOn())
query.append(platform.getPlatformInfo().getDelimiterToken());
query.append(columnsToCheck[idx].getName());
query.append("t.").append(columnsToCheck[idx].getName());
if (getPlatform().isDelimitedIdentifierModeOn())
query.append(platform.getPlatformInfo().getDelimiterToken());
}
Expand All @@ -395,7 +395,7 @@ protected void determineAutoIncrementFromResultSetMetaData(Table table, final Co
query.append(table.getName());
if (getPlatform().isDelimitedIdentifierModeOn())
query.append(platform.getPlatformInfo().getDelimiterToken());
query.append(" WHERE 1 = 0");
query.append(" t WHERE 1 = 0");
final String finalQuery = query.toString();
jdbcTemplate.execute(new StatementCallback() {
public Object doInStatement(Statement stmt) throws SQLException, DataAccessException {
Expand Down

0 comments on commit b487bf5

Please sign in to comment.