diff options
Diffstat (limited to 'examples/threads.py')
-rw-r--r-- | examples/threads.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/threads.py b/examples/threads.py index ca67104..d4b4fb2 100644 --- a/examples/threads.py +++ b/examples/threads.py @@ -81,7 +81,7 @@ def insert_func(conn_or_pool, rows): conn = conn_or_pool.getconn() c = conn.cursor() try: - c.execute("INSERT INTO test_threads VALUES (%s, %d, %f)", + c.execute("INSERT INTO test_threads VALUES (%s, %s, %s)", (str(i), i, float(i))) except psycopg.ProgrammingError, err: print name, ": an error occurred; skipping this insert" |