summaryrefslogtreecommitdiff
path: root/test/sql/test_insert.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sql/test_insert.py')
-rw-r--r--test/sql/test_insert.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/sql/test_insert.py b/test/sql/test_insert.py
index 73731e952..e23ab520d 100644
--- a/test/sql/test_insert.py
+++ b/test/sql/test_insert.py
@@ -683,6 +683,18 @@ class InsertImplicitReturningTest(
'othername_m0': 'foo'}
)
+ def test_insert_multiple_values_literal_binds(self):
+ ins = self.tables.myothertable.insert().values([
+ {"othername": "foo"},
+ {"othername": "bar"},
+ ])
+ self.assert_compile(
+ ins,
+ "INSERT INTO myothertable (othername) VALUES ('foo'), ('bar')",
+ checkparams={},
+ literal_binds=True
+ )
+
def test_insert_multiple_values_return_defaults(self):
# TODO: not sure if this should raise an
# error or what