on dev help sign in
ensure empty relations in FromClause returning json functions

should these actually be tablexpressions or something? or maybe FromClause needs an extra parameter?

commit0d4e3c8e67c971dee55f60fbdf12af4f732a056e authorMike Ledger <mike@quasimal.com> dateWed 18 Jul 2018, 13:24 (8 years ago) parent84f57ee
1 file changed+4−4
squeal-postgresql/src/Squeal/PostgreSQL/Query.hs+4−4
squeal-postgresql/src/Squeal/PostgreSQL/Query.hs+4−4
@@ -660,28 +660,28 @@ unsafeAliasedFromClauseExpression aliasedExpr = UnsafeFromClause
660660
661661-- | Expands the outermost JSON object into a set of key/value pairs.
662662jsonEach
663− :: Aliased (Expression schema relations 'Ungrouped params) '(tab, nullity 'PGjson)
663+ :: Aliased (Expression schema '[] 'Ungrouped params) '(tab, nullity 'PGjson)
664664 -> FromClause schema params (PGjson_each tab)
665665jsonEach (As jexpr jname) = unsafeAliasedFromClauseExpression
666666 (As (unsafeFunction "json_each" jexpr) jname)
667667
668668-- | Expands the outermost binary JSON object into a set of key/value pairs.
669669jsonbEach
670− :: Aliased (Expression schema relations 'Ungrouped params) '(tab, nullity 'PGjsonb)
670+ :: Aliased (Expression schema '[] 'Ungrouped params) '(tab, nullity 'PGjsonb)
671671 -> FromClause schema params (PGjsonb_each tab)
672672jsonbEach (As jexpr jname) = unsafeAliasedFromClauseExpression
673673 (As (unsafeFunction "jsonb_each" jexpr) jname)
674674
675675-- | Expands the outermost JSON object into a set of key/value pairs.
676676jsonEachAsText
677− :: Aliased (Expression schema relations 'Ungrouped params) '(tab, nullity 'PGjson)
677+ :: Aliased (Expression schema '[] 'Ungrouped params) '(tab, nullity 'PGjson)
678678 -> FromClause schema params (PGjson_each_text tab)
679679jsonEachAsText (As jexpr jname) = unsafeAliasedFromClauseExpression
680680 (As (unsafeFunction "json_each" jexpr) jname)
681681
682682-- | Expands the outermost binary JSON object into a set of key/value pairs.
683683jsonbEachAsText
684− :: Aliased (Expression schema relations 'Ungrouped params) '(tab, nullity 'PGjsonb)
684+ :: Aliased (Expression schema '[] 'Ungrouped params) '(tab, nullity 'PGjsonb)
685685 -> FromClause schema params (PGjsonb_each_text tab)
686686jsonbEachAsText (As jexpr jname) = unsafeAliasedFromClauseExpression
687687 (As (unsafeFunction "jsonb_each" jexpr) jname)