(executor)
| 56 | |
| 57 | @dbtest |
| 58 | def test_copy(executor): |
| 59 | executor_copy = executor.copy() |
| 60 | run(executor_copy, """create table test(a text)""") |
| 61 | run(executor_copy, """insert into test values('abc')""") |
| 62 | assert run(executor_copy, """select * from test""", join=True) == dedent( |
| 63 | """\ |
| 64 | +-----+ |
| 65 | | a | |
| 66 | |-----| |
| 67 | | abc | |
| 68 | +-----+ |
| 69 | SELECT 1""" |
| 70 | ) |
| 71 | |
| 72 | |
| 73 | @dbtest |