mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-05-30 12:15:27 +08:00
* initial raster support * _st_intersects_geom -> _st_intersects_geom_nband * add tests * update docs * improve docs As requested by @marionschleifer * new type for raster values Suggested by @lexi-lambda * replace `SEUnsafe "NULL"` with SENull
This commit is contained in:
committed by
Shahidh K Muhammed
parent
7f818b8b19
commit
f7c99689da
@@ -192,13 +192,15 @@ prepareWithPlan = \case
|
||||
_ -> getNextArgNum
|
||||
addPrepArg argNum $ toBinaryValue colVal
|
||||
return $ toPrepParam argNum (pstType colVal)
|
||||
|
||||
R.UVSessVar ty sessVar -> do
|
||||
let sessVarVal =
|
||||
S.SEOpApp (S.SQLOp "->>")
|
||||
[S.SEPrep 1, S.SELit $ T.toLower sessVar]
|
||||
return $ flip S.SETyAnn (S.mkTypeAnn ty) $ case ty of
|
||||
PGTypeScalar colTy -> withGeoVal colTy sessVarVal
|
||||
PGTypeScalar colTy -> withConstructorFn colTy sessVarVal
|
||||
PGTypeArray _ -> sessVarVal
|
||||
|
||||
R.UVSQL sqlExp -> return sqlExp
|
||||
|
||||
queryRootName :: Text
|
||||
|
||||
Reference in New Issue
Block a user