(self, testing_engine)
| 1200 | ) |
| 1201 | |
| 1202 | def test_disabled(self, testing_engine): |
| 1203 | e = testing_engine( |
| 1204 | options={"use_insertmanyvalues": False, "sqlite_share_pool": True}, |
| 1205 | ) |
| 1206 | totalnum = 1275 |
| 1207 | data = [{"x": "x%d" % i, "y": "y%d" % i} for i in range(1, totalnum)] |
| 1208 | |
| 1209 | t = self.tables.data |
| 1210 | |
| 1211 | with e.begin() as conn: |
| 1212 | stmt = t.insert() |
| 1213 | with expect_raises_message( |
| 1214 | exc.StatementError, |
| 1215 | "with current server capabilities does not support " |
| 1216 | "INSERT..RETURNING when executemany", |
| 1217 | ): |
| 1218 | conn.execute(stmt.returning(t.c.id), data) |
| 1219 | |
| 1220 | |
| 1221 | class IMVSentinelTest(fixtures.TestBase): |
nothing calls this directly
no test coverage detected