Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazerzen committed Jun 27, 2024
1 parent 6eadbb8 commit 109a337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions edb/pgsql/inheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
from edb.schema import sources as s_sources
from edb.schema import schema as s_schema

from edb.pgsql import types
from edb.pgsql import common

from . import ast as pgast
from . import types
from . import common


def get_inheritance_view(
Expand Down
4 changes: 2 additions & 2 deletions edb/pgsql/resolver/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"""SQL resolver that compiles public SQL to internal SQL which is executable
in our internal Postgres instance."""

from typing import Iterable, Optional, Tuple, List, cast
from typing import Optional, Tuple, List, cast

from edb import errors
from edb.server.pgcon import errors as pgerror
Expand Down Expand Up @@ -183,7 +183,7 @@ def extract_ctes_from_ctx(
ctx: context.ResolverContextLevel,
) -> List[pgast.CommonTableExpr]:
if ctx.subquery_depth != 0:
return ()
return []

res = list(ctx.ctes_buffer)
ctx.ctes_buffer = []
Expand Down

0 comments on commit 109a337

Please sign in to comment.