> CREATE TABLE "test" ("name" TEXT)


OK, That looks fine.

>> con=sqlite3.connect(sPath)
>> cur=con.cursor()
>> cur.execute("insert into test (name) values (?)",sPath)


Try putting the string variable in a tuple:

cur.execute("insert into test (name) values (?)", (sPath,) )


That seems to work for me...

HTH,

Alan G.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to