Subject | Re: [firebird-python] fdb: error on get server version info |
---|---|
Author | Philippe Makowski |
Post date | 2012-09-23T08:32:14Z |
Maximiliano Robaina [2012-09-22 23:46] :
--
Philippe Makowski
http://www.ibphoenix.com
Supporting users of Firebird
Tel +33 (0) 561058813
Tel +33 (0) 616179800
>Version is a string, not an integer
> 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?
>
>>> import fdb.services as fbserviceLI-V2.5.2.26518 Firebird 2.5
>>> svc = fbservice.connect(host='localhost',password='masterkey')
>>> print svc.getServerVersion()
>>> import fdbfdb.connect(dsn='localhost:employee',user='sysdba',password='masterkey')
>>> con =
>>> 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