Re: Sequences in DB/pgsql (once again)

From: Date: Fri, 15 Dec 2000 10:58:26 +0000
Subject: Re: Sequences in DB/pgsql (once again)
References: 1 2 3 4 5 6  Groups: php.pear 
Request: Send a blank email to php-pear+get-698@lists.php.net to get a copy of this message
Hello Stig, On Fri, Dec 15, 2000 at 11:29:08AM +0100, Stig S. Bakken wrote: > > > > > I think the regular expression matching is not efficient, > > > > but there is no other ways as you said. > > > > > > > > I think adding a function returning error code to libpq is better way. > > > > > > Modifying PHP's Postgres extension won't do, because libpq does not > > > offer error codes. Modifying libpq won't do either, because we still > > > have to support the "string only" behaviour for those who don't have > > > the > > > modified libpq. Maybe we can get away with just defining an associative > > > array? I'll give it a shot. > > > > I don't know, but the exact messages might not be persistent across > > Postgres versions - be it in the past or in the future. > > That's true, but this is exactly what we have testing for. Once we are > pretty confident that it works for current and older versions, it's not > a problem to deal with new versions as they are released. I really > don't see any other ways of doing this. Okay, you will have to key every significant message of all versions into an associative array. Anyway, it's not so critical since error conditions doesn't have to be processed in a rush. -- Stay tuned, MhZ mailto:mookid@sigent.ru ----------- All of the true things I am about to tell you are shameless lies. -- The Book of Bokonon / Kurt Vonnegut Jr.

« previous php.pear (#698) next »