summaryrefslogtreecommitdiff
path: root/test/sql/test_compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-12-08 16:17:20 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-12-08 16:17:20 -0500
commit8070cbde716a247f8b31c1334c80fa53327e6d8e (patch)
tree7c610799dcedc15265c2f8264d32cd1ca240b6ef /test/sql/test_compiler.py
parent927b9859834096dd77182f935ff611351407f0dc (diff)
downloadsqlalchemy-8070cbde716a247f8b31c1334c80fa53327e6d8e.tar.gz
internally at least refer to multirow as "multivalues", to distinguish between
an INSERT that's used in executemany() as opposed to one which has a VALUES clause with multiple entries.
Diffstat (limited to 'test/sql/test_compiler.py')
-rw-r--r--test/sql/test_compiler.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py
index d01719727..f58d25db0 100644
--- a/test/sql/test_compiler.py
+++ b/test/sql/test_compiler.py
@@ -2575,7 +2575,7 @@ class CRUDTest(fixtures.TestBase, AssertsCompiledSQL):
stmt.compile, dialect=dialect
)
- def test_multirow_insert_not_supported(self):
+ def test_multivalues_insert_not_supported(self):
stmt = table1.insert().values([{"myid": 1}, {"myid": 2}])
dialect = default.DefaultDialect()
assert_raises_message(
@@ -2585,7 +2585,7 @@ class CRUDTest(fixtures.TestBase, AssertsCompiledSQL):
stmt.compile, dialect=dialect
)
- def test_multirow_insert_named(self):
+ def test_multivalues_insert_named(self):
stmt = table1.insert().\
values([{"myid": 1, "name": 'a', "description": 'b'},
{"myid": 2, "name": 'c', "description": 'd'},
@@ -2598,7 +2598,7 @@ class CRUDTest(fixtures.TestBase, AssertsCompiledSQL):
"(:myid_2, :name_2, :description_2)"
dialect = default.DefaultDialect()
- dialect.supports_multirow_insert = True
+ dialect.supports_multivalues_insert = True
self.assert_compile(stmt, result,
checkparams={
'description_2': 'f', 'name_2': 'e',
@@ -2608,7 +2608,7 @@ class CRUDTest(fixtures.TestBase, AssertsCompiledSQL):
},
dialect=dialect)
- def test_multirow_insert_positional(self):
+ def test_multivalues_insert_positional(self):
stmt = table1.insert().\
values([{"myid": 1, "name": 'a', "description": 'b'},
{"myid": 2, "name": 'c', "description": 'd'},
@@ -2621,7 +2621,7 @@ class CRUDTest(fixtures.TestBase, AssertsCompiledSQL):
"(%s, %s, %s)" \
dialect = default.DefaultDialect()
- dialect.supports_multirow_insert = True
+ dialect.supports_multivalues_insert = True
dialect.paramstyle = "format"
dialect.positional = True
self.assert_compile(stmt, result,