Skip to content

Commit

Permalink
Possible fix for #795
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorium committed Oct 21, 2023
1 parent 4ff975c commit 796bf92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SQLProvider.Runtime/Providers.Postgresql.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ type internal PostgresqlProvider(resolutionPath, contextSchemaPath, owner, refer
if not (tmpGrpParams.ContainsKey (a,c)) then
tmpGrpParams.Add((a,c), fn)
if sqlQuery.Aliases.Count < 2 then fn
else sprintf "%s as \"%s\"" fn fn)
else sprintf "%s as \"%s\"" fn (fn.Replace("\"", "")))
let aggs = g |> List.collect snd
let res2 = FSharp.Data.Sql.Common.Utilities.parseAggregates fieldNotation PostgreSQL.fieldNotationAlias aggs |> List.toSeq
[String.Join(", ", keys) + (if List.isEmpty aggs || List.isEmpty keys then "" else ", ") + String.Join(", ", res2)]
Expand Down

0 comments on commit 796bf92

Please sign in to comment.