3
0

Add missing ref. types to expr. registry

This commit is contained in:
Tomaž Jerman
2021-10-06 15:31:16 +02:00
parent 124b9e2a05
commit d2e722688d
+2
View File
@@ -324,6 +324,8 @@ func (nn parserNodes) ToAST() (out *ASTNode) {
// A simplified type registry for the types that QL needs to understand
func qlTypeRegistry(ref string) expr.Type {
switch ref {
case "ID", "Record", "User":
return &expr.ID{}
case "Boolean", "Bool":
return &expr.Boolean{}
case "Integer":