Added session manager.

This commit is contained in:
2022-09-09 22:15:55 +08:00
parent 9caee2819f
commit 6859671230
12 changed files with 84 additions and 39 deletions
+6 -2
View File
@@ -99,7 +99,9 @@ class expr(ast_node):
self.type = op.return_type(*type_vals)
except AttributeError as e:
if type(self.root) is not udf:
print(f'alert: {e}')
# TODO: do something when this is not an error
# print(f'alert: {e}')
pass
self.type = AnyT
self.sql = op(self.c_code, *str_vals)
@@ -142,7 +144,9 @@ class expr(ast_node):
else:
return var_table[node]
if vec[0] not in _vars:
print(f'Use of undefined variable {vec[0]}')
# print(f'Use of undefined variable {vec[0]}')
# TODO: do something when this is not an error
pass
else:
vname = get_vname(vec[0])
val = enlist(val)