Skip to content

Commit

Permalink
Fixes compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lillo42 committed Jan 9, 2025
1 parent 25b72da commit 7c863bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/WebAPI/WebAPI_Common/DbMaker/SchemaCreation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,14 +388,14 @@ private static void CreateOutboxPostgres(string? connectionString, bool hasBinar
sqlConnection.Open();

using NpgsqlCommand existsQuery = sqlConnection.CreateCommand();
existsQuery.CommandText = PostgreSqlOutboxBulder.GetExistsQuery(OUTBOX_TABLE_NAME);
existsQuery.CommandText = PostgreSqlOutboxBuilder.GetExistsQuery(OUTBOX_TABLE_NAME);
object? findOutbox = existsQuery.ExecuteScalar();
bool exists = findOutbox is long and > 0;

if (exists) return;

using NpgsqlCommand command = sqlConnection.CreateCommand();
command.CommandText = PostgreSqlOutboxBulder.GetDDL(OUTBOX_TABLE_NAME, hasBinaryPayload);
command.CommandText = PostgreSqlOutboxBuilder.GetDDL(OUTBOX_TABLE_NAME, hasBinaryPayload);
command.ExecuteScalar();
}

Expand Down

0 comments on commit 7c863bf

Please sign in to comment.