2007-09-05

Problem BIGINT in Jython

You must convert Python Long object to Java Long object before execute sql command.

Example: id = Long(data[0])
difficulty = utils.calc_sentence_diff(data[1])
cursor.execute(update_sql, (difficulty, id))

No comments: