Subject fdb: error on get server version info
Author Maximiliano Robaina
Hi,

I'm trying to retrive the firebird server version using fdb.
There are two way to do this in fdb, using a connection or using firebird service.

I'm using the first one, but I get a error.

>>> conn = fdb.connect(dsn=DB_NAME, user='sysdba', password='masterkey')
>>> conn.database_info(fdb.isc_info_firebird_version, 'i')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/fdb/fbcore.py", line 800, in database_info
    return bytes_to_int(res_buf[3:3 + bytes_to_int(res_buf[1:3])])
  File "/usr/local/lib/python2.7/dist-packages/fdb/fbcore.py", line 367, in bytes_to_int
    raise InternalError
fdb.fbcore.InternalError


Is it a fdb bug or I'm misinterpreting something?


 
--
Maxi


b: http://maxirobaina.tumblr.com
t: http://twitter.com/maxirobaina