Skip to content

Commit

Permalink
Fix using pg 14/15 (#7389)
Browse files Browse the repository at this point in the history
Apparently #7312 some code in a SQL function that only works on
Postgres 16. Fix it.

Fixes #7365.
  • Loading branch information
msullivan committed May 24, 2024
1 parent 248e1f6 commit d8ae9ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edb/lib/std/30-jsonfuncs.edgeql
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ std::__json_get_not_null(
SET volatility := 'Immutable';
SET internal := true;
USING SQL $$
SELECT
SELECT
CASE
WHEN "json" = 'null'::jsonb THEN
NULL
Expand Down Expand Up @@ -458,7 +458,7 @@ std::__range_validate_json(val: std::json, detail: std::str='') -> OPTIONAL std:
ARRAY['object', 'null'],
detail => detail
) AS v
)
) AS x
$$;
};

Expand Down

0 comments on commit d8ae9ec

Please sign in to comment.