Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Aug 4, 2020
1 parent 1a63018 commit ad74bd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions edb/edgeql/compiler/expr.py
Expand Up @@ -90,8 +90,6 @@ def compile_coalesce_insert(
)
rir = setgen.scoped_set(setgen.ensure_stmt(rir, ctx=rctx), ctx=rctx)

# Now we flip-flop the coalesce so that the SELECT gets executed
# if the INSERT is empty.
with ctx.new() as subctx:
subctx.anchors = subctx.anchors.copy()
l_alias = subctx.aliases.get('l')
Expand Down
3 changes: 2 additions & 1 deletion tests/test_edgeql_insert.py
Expand Up @@ -1671,7 +1671,8 @@ async def test_edgeql_insert_in_conditional_bad_01(self):
async def test_edgeql_insert_in_conditional_bad_02(self):
with self.assertRaisesRegex(
edgedb.QueryError,
'INSERT statements cannot be used inside conditional expressions'):
'INSERT statements cannot be used inside '
'conditional expressions'):
await self.con.execute(r'''
WITH MODULE test
SELECT
Expand Down

0 comments on commit ad74bd9

Please sign in to comment.