mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
Support _is_null operator in MSSQL permissions. fix #8479
GITHUB_PR_NUMBER: 9414 GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9414 PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7800 Co-authored-by: Nakano as a Service <20109935+NKNaaS@users.noreply.github.com> GitOrigin-RevId: 9a409bd023a21cbc43c13f028d088bde7a21c62f
This commit is contained in:
parent
eb3833516b
commit
22d9b54eae
@ -62,6 +62,8 @@ parseBoolExpOperations rhsParser _rootTableFieldInfoMap _fields columnRef value
|
||||
"_like" -> parseLike
|
||||
"$nlike" -> parseNlike
|
||||
"_nlike" -> parseNlike
|
||||
"$is_null" -> parseIsNull
|
||||
"_is_null" -> parseIsNull
|
||||
"_st_contains" -> ABackendSpecific <$> parseGeometryOrGeographyOp ASTContains
|
||||
"$st_contains" -> ABackendSpecific <$> parseGeometryOrGeographyOp ASTContains
|
||||
"_st_equals" -> ABackendSpecific <$> parseGeometryOrGeographyOp ASTEquals
|
||||
@ -93,6 +95,7 @@ parseBoolExpOperations rhsParser _rootTableFieldInfoMap _fields columnRef value
|
||||
parseLte = ALTE <$> parseOne
|
||||
parseLike = guardType stringTypes >> ALIKE <$> parseOne
|
||||
parseNlike = guardType stringTypes >> ANLIKE <$> parseOne
|
||||
parseIsNull = bool ANISNOTNULL ANISNULL <$> parseVal
|
||||
|
||||
parseGeometryOp f =
|
||||
guardType [GeometryType] >> f <$> parseOneNoSess colTy val
|
||||
@ -110,3 +113,6 @@ parseBoolExpOperations rhsParser _rootTableFieldInfoMap _fields columnRef value
|
||||
" is of type "
|
||||
<> ty <<> "; this operator works only on columns of type "
|
||||
<> T.intercalate "/" (map dquote expTys)
|
||||
|
||||
parseVal :: (J.FromJSON a) => m a
|
||||
parseVal = decodeValue val
|
||||
|
Loading…
Reference in New Issue
Block a user