From ad74bd99df646aae4f7233c478f0596ba878ab46 Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Tue, 4 Aug 2020 13:50:33 -0700 Subject: [PATCH] tweaks --- edb/edgeql/compiler/expr.py | 2 -- tests/test_edgeql_insert.py | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/edb/edgeql/compiler/expr.py b/edb/edgeql/compiler/expr.py index 63fb5e830d..6b63d87d9d 100644 --- a/edb/edgeql/compiler/expr.py +++ b/edb/edgeql/compiler/expr.py @@ -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') diff --git a/tests/test_edgeql_insert.py b/tests/test_edgeql_insert.py index a8d8488842..fd4e480912 100644 --- a/tests/test_edgeql_insert.py +++ b/tests/test_edgeql_insert.py @@ -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