Subject Re: Jsonify
Author philippe makowski
Philippe Makowski [2012-05-07 11:47] :
> nxciro [2012-05-04 14:35] :
>> Following code works fine with kinterbasdb but
>> fails with fdb :
>>
>> File "jsonify-firebird.py", line 22, in <module>
>> cols = [x[0] for x in cur.description]
>> TypeError: 'NoneType' object is not iterable
>>
> will check

seems that in fbcore.py in PreparedStatement __get_description, line
1338, instead of

if self.__executed and (self.out_sqlda.sqld > 0):

we need to put :

if self.__prepared and (self.out_sqlda.sqld > 0):

Pavel, do you agree ?