[Pas-dev] Oracle support (finally)
Status: Beta
Brought to you by:
mortis
From: Mental P. <me...@ne...> - 2003-01-07 22:23:01
|
Well, I commited the preliminary Oracle driver for pas.=20 It works, but I'm not quite happy with it. For one thing, oracle has no concept of NOW(), it has SYSDATE. So I overrode some extra methods to print the sql correctly. This doubles mainenence in theory.=20 Whats the feeling of having the time/date function for the database in the config file?=20 pas.session.db.timefunction=3DSYSDATE or=20 pas.session.db.timefunction=3DNOW()=20 SOmething like that. That'll cut down the amount of code by a whopping 3 out of 5 methods. The other thing I had to do was override the dbh method. Oracle needs to use blobs for this, I had to set the LongReadLen. Not a big deal.=20 So, anyways, this is something I can go one way or the other on. Do we abstract the date stuff tot he config file, or do we let drivers simply override methods if needed?=20 I suppose this all means that DB2 support is next :) --=20 Mental (Me...@Ne...) The Riddle of Epicurus Is God willing to prevent evil, but not able? Then he is not omnipotent. Is he able, but not willing? Then he is malevolent. Is he both able and willing? Then whence cometh evil? Is he neither able nor willing? Then why call him God? http://www.positiveatheism.org/ CARPE NOCTEM, QUAM MINIMUM CREDULA POSTERO. GPG public key: http://www.neverlight.com/pas/Mental.asc |