Commit 66aadcf7 by zhoufensong

注释flyway对PostgreSQL重置角色为初始化值的操作

parent c548d507
...@@ -44,7 +44,7 @@ public class PostgreSQLConnection extends Connection<PostgreSQLDatabase> { ...@@ -44,7 +44,7 @@ public class PostgreSQLConnection extends Connection<PostgreSQLDatabase> {
@Override @Override
protected void doRestoreOriginalState() throws SQLException { protected void doRestoreOriginalState() throws SQLException {
// Reset the role to its original value in case a migration or callback changed it // Reset the role to its original value in case a migration or callback changed it
jdbcTemplate.execute("SET ROLE '" + originalRole + "'"); // jdbcTemplate.execute("SET ROLE '" + originalRole + "'");
} }
@Override @Override
...@@ -98,4 +98,4 @@ public class PostgreSQLConnection extends Connection<PostgreSQLDatabase> { ...@@ -98,4 +98,4 @@ public class PostgreSQLConnection extends Connection<PostgreSQLDatabase> {
public <T> T lock(Table table, Callable<T> callable) { public <T> T lock(Table table, Callable<T> callable) {
return new PostgreSQLAdvisoryLockTemplate(jdbcTemplate, table.toString().hashCode()).execute(callable); return new PostgreSQLAdvisoryLockTemplate(jdbcTemplate, table.toString().hashCode()).execute(callable);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment