Re: [firebird-python] Jsonify

2012-05-07 Thread Philippe Makowski
nxciro [2012-05-04 14:35] : > Following code works fine with kinterbasdb but > fails with fdb : > > File "jsonify-firebird.py", line 22, in > cols = [x[0] for x in cur.description] > TypeError: 'NoneType' object is not iterable > will check but you can try this : import json import fdb

[firebird-python] Jsonify

2012-05-04 Thread nxciro
Following code works fine with kinterbasdb but fails with fdb : File "jsonify-firebird.py", line 22, in cols = [x[0] for x in cur.description] TypeError: 'NoneType' object is not iterable Having said that , if I uncomment the line #print cur.description[0] fdb also works ok. Something not