Skip to content

Commit

Permalink
Merge pull request #293 from paule96/patch-1
Browse files Browse the repository at this point in the history
inserting into postgres SQL was broken
  • Loading branch information
valdisiljuconoks authored Aug 27, 2024
2 parents 014c71f + 2b87690 commit 9d83406
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public void InsertResource(LocalizationResource resource)
conn.Open();

var cmd = new NpgsqlCommand(
@"INSERT INTO public.""LocalizationResources"" (""ResourceKey"", ""Author"", ""FromCode"", ""IsHidden"", ""IsModified"", ""ModificationDate"", ""Notes"") OUTPUT INSERTED.ID VALUES (@resourceKey, @author, @fromCode, @isHidden, @isModified, @modificationDate, @notes)",
@"INSERT INTO public.""LocalizationResources"" (""ResourceKey"", ""Author"", ""FromCode"", ""IsHidden"", ""IsModified"", ""ModificationDate"", ""Notes"") VALUES (@resourceKey, @author, @fromCode, @isHidden, @isModified, @modificationDate, @notes) RETURNING ""LocalizationResources"".""Id""",
conn);

cmd.Parameters.AddWithValue("resourceKey", resource.ResourceKey);
Expand Down

0 comments on commit 9d83406

Please sign in to comment.