Skip to content

Commit

Permalink
Fix compile_graphql()
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix committed Jan 30, 2024
1 parent 826d51a commit 6217538
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions edb/server/compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1800,8 +1800,7 @@ def _compile_ql_query(
pg_debug.dump_ast_and_query(sql_res.ast, ir)

cache_sql = None
if use_persistent_cache:
assert ctx.cache_key is not None
if use_persistent_cache and ctx.cache_key is not None:
key = ctx.cache_key.hex
func = pg_dbops.Function(
name=('edgedb', f'__qh_{key}'),
Expand Down

0 comments on commit 6217538

Please sign in to comment.