(self, conn)
| 112 | assert s1 == 'select "field" from "table"' |
| 113 | |
| 114 | def test_compose_literal(self, conn): |
| 115 | s = sql.SQL("select {0};").format(sql.Literal(dt.date(2016, 12, 31))) |
| 116 | s1 = s.as_string(conn) |
| 117 | assert s1 == "select '2016-12-31'::date;" |
| 118 | |
| 119 | def test_compose_empty(self, conn): |
| 120 | s = sql.SQL("select foo;").format() |