I have the following code which, without the escaped SQL statement, is working fine - it iterates over the full set of returns from a previous SELECT query printing the ID, detected language (from bingtranslate) and text.
for row in c:
lang=bingtranslate(row[0])
tweetid = row[1]
print tweetid, lang, row[0]
#c.execute('UPDATE tweet SET iso_language_code=? WHERE id=?',(lang, tweetid))
When I unescape the UPDATE call, it loops once, and then stops.
What gives? No error reported. I'm sure it's something simple but I just can't crack it...
ccause that collection to be reset?