Skip to content

Commit

Permalink
fixed concat
Browse files Browse the repository at this point in the history
  • Loading branch information
qcplus committed Jul 24, 2023
1 parent 6bb39d4 commit 8eeec89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Respawn/PostgresDbAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ from INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS rc
{
var args = string.Join(",", tableGroup.Tables.Select(table => $"'{table.Schema}.{table.Name}'"));

commandText += " AND tc.TABLE_SCHEMA + '.' + tc.TABLE_NAME NOT IN (" + args + ")";
commandText += " AND tc.TABLE_SCHEMA || '.' || tc.TABLE_NAME NOT IN (" + args + ")";
}
else
{
Expand Down Expand Up @@ -157,7 +157,7 @@ from INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS rc
{
var args = string.Join(",", tableGroup.Tables.Select(table => $"'{table.Schema}.{table.Name}'"));

commandText += " AND tc.TABLE_SCHEMA + '.' + tc.TABLE_NAME IN (" + args + ")";
commandText += " AND tc.TABLE_SCHEMA || '.' || tc.TABLE_NAME IN (" + args + ")";
}
else
{
Expand Down

0 comments on commit 8eeec89

Please sign in to comment.