Subject | fdb: error on get server version info |
---|---|
Author | Maximiliano Robaina |
Post date | 2012-09-22T21:46:58Z |
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.
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
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')Traceback (most recent call last):
>>> conn.database_info(fdb.isc_info_firebird_version, 'i')
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