On Mon, 29 May 2006 20:25:05 +0000 (UTC) "Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum" 10353@lyskom.lysator.liu.se wrote:
Hm, no, I don't see how you would be able to "check for ::quote". Either you use ::quote in your code, in which case you'll get a compilation error if it doesn't exist, or you don't, in which case you can't check for it...
Ok, how's this sound?
Sql.postgres has simple_quote() Postgres.postgres has good_quote()
Sql.postgres looks something like this:
inherit Postgres.postgres; function quote; static void create(mixed ... args) { if (this->good_quote) quote = this->good_quote; else quote = simple_quote; ::create(@args); }
From a quick test class, that seems to work.
Adam