From f099ae22cba0dcd325250828233660db0fdf2dd4 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 17 Apr 2014 03:37:53 +0300 Subject: [PATCH] sqlite3: Add simple test. --- sqlite3/test_sqlite3.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sqlite3/test_sqlite3.py diff --git a/sqlite3/test_sqlite3.py b/sqlite3/test_sqlite3.py new file mode 100644 index 00000000..7429e9d0 --- /dev/null +++ b/sqlite3/test_sqlite3.py @@ -0,0 +1,12 @@ +import sqlite3 + + +conn = sqlite3.connect(":memory:") + +cur = conn.cursor() +cur.execute("SELECT 1, 'foo', 3.14159 UNION SELECT 3, 3, 3") +while True: + row = cur.fetchone() + if row is None: + break + print(row)