Skip to content

Commit

Permalink
DAT-18828
Browse files Browse the repository at this point in the history
Add another escape
  • Loading branch information
wwillard7800 committed Jan 3, 2025
1 parent 560bf09 commit 4d2770b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot
PrimaryKey returnKey = null;

String keyColumnUsageStatement = String.format("SELECT * FROM %s.INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE CONSTRAINT_NAME = ?",
example.getSchema().getName());
database.escapeObjectName(example.getSchema().getName(), Schema.class));
Executor executor = Scope.getCurrentScope().getSingleton(ExecutorService.class).getExecutor("jdbc", database);
List<Map<String, ?>> maps = executor.queryForList(new RawParameterizedSqlStatement(keyColumnUsageStatement, example.getName()));
String columnName;
Expand Down

0 comments on commit 4d2770b

Please sign in to comment.