From: Aaron B. <Aar...@da...> - 2006-11-01 15:48:21
|
Oleg, I do not have access to an ASE server so hard to say for sure. ASA does have a server version constant, 'SELECT @@VERSION' which on my system gives 9.0.2.2452 as the result. Sybase ASE versions start at 11 I think and ASA stuff is always version < 10, so maybe stripping out the first number from this string can tell the difference. I don't think I can make this check in __init__ because the connection doesn't exist yet. Maybe the makeConnection method? I would like to just set a flag once for the module rather than check the version each time a method is called... Oleg Broytmann wrote: > Hi! > > On Tue, Oct 31, 2006 at 04:11:24PM -0600, Aaron Bostick wrote: >> On a side note, I was able to get the sybaseconnection.py code to work >> with Sybase ASA by changing some of the SQL in that file. > > Have you found a way to distinguish ASA from ASE on the fly? > > Oleg. Regards, Aaron |