(self)
| 243 | ) |
| 244 | |
| 245 | async def test_sql_dml_insert_09(self): |
| 246 | # insert with a CTE |
| 247 | await self.scon.execute( |
| 248 | ''' |
| 249 | WITH a AS ( |
| 250 | SELECT 'Report' as t UNION ALL SELECT 'Briefing' |
| 251 | ) |
| 252 | INSERT INTO "Document" (title) SELECT * FROM a |
| 253 | ''' |
| 254 | ) |
| 255 | res = await self.squery_values('SELECT title FROM "Document"') |
| 256 | self.assertEqual(res, tb.bag([['Report (new)'], ['Briefing (new)']])) |
| 257 | |
| 258 | async def test_sql_dml_insert_10(self): |
| 259 | # two inserts |
nothing calls this directly
no test coverage detected