Maximiliano Robaina  [2012-09-22 23:46] :
> 
> 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.
> 
> Is it a fdb bug or I'm misinterpreting something?
> 
Version is a string, not an integer

>>> import fdb.services as fbservice
>>> svc = fbservice.connect(host='localhost',password='masterkey')
>>> print svc.getServerVersion()
LI-V2.5.2.26518 Firebird 2.5

>>> import fdb
>>> con =
fdb.connect(dsn='localhost:employee',user='sysdba',password='masterkey')
>>> print con.db_info([fdb.isc_info_firebird_version,])
{103: 'LI-V2.5.2.26518 Firebird 2.5'}


-- 
Philippe Makowski
http://www.ibphoenix.com
Supporting users of Firebird
Tel +33 (0) 561058813
Tel +33 (0) 616179800

Reply via email to