Showing posts with the label database-cursor

[FIXED] cursor.fetchall() vs list(cursor) in Python

Issue Both methods return a list of the returned items of the query, did I miss something here, or …

[FIXED] Can I use the same cursor while looping through it?

Issue I am iterating through a SELECT result, like this: import MySQLdb conn = MySQLdb.connect(h…

[FIXED] PL/SQL Cursor whose query is based on a variable

Issue I've got a PL/SQL block that's basically DECLARE PIDM NUMBER(8); …

[FIXED] mysqldb cursor.close() throws ProgrammingError: (2014, "commands out of sync...") when executing sql read from file

Issue As part of a larger debugging effort, I've run into the following bug using mysqldb: Fi…

[FIXED] I'm confused about MySQLdb server side cursor and client cursor

Issue I'm using python-mysql(MySQLdb) to query Mysql server. There are two cursor modules: one …

[FIXED] Why do I need to reconnect to the database to see changes in table data?

Issue I periodically query a MySQL table and check data in the same row. I use MySQLdb to do the …