(conn)
| 301 | |
| 302 | |
| 303 | def test_fetchone(conn): |
| 304 | cur = conn.cursor() |
| 305 | cur.execute(ph(cur, "select %s::int, %s::text, %s::text"), [1, "foo", None]) |
| 306 | assert cur.pgresult.fformat(0) == 0 |
| 307 | |
| 308 | row = cur.fetchone() |
| 309 | assert row == (1, "foo", None) |
| 310 | row = cur.fetchone() |
| 311 | assert row is None |
| 312 | |
| 313 | |
| 314 | def test_binary_cursor_execute(conn): |