Question: Why does this sqlite3 statement not update the record?
information:
cur.execute('UPDATE workunits SET Completed=1 AND Returns=(?) WHERE PID=(?) AND Args=(?)',(pickle.dumps(Ret),PID,Args))
I am using python and sqlite3. this operator does not throw an error; it seems that it is incorrectly ignored. for testing reasons, I have included it below:
cur.execute('SELECT * FROM workunits WHERE PID=(?) AND Args=(?)',(PID,Args))
Which returns a record is just fine. but the record does not match the date of the new pickled ret value. he stays u. '' I canβt understand why. my expression seems to work. my syntax seems correct because the error does not occur. I donβt know why this is not working.
source share