Re: Sequences in DB/pgsql (once again)
| From: | Rui Hirokawa | Date: | Thu, 14 Dec 2000 14:45:27 +0000 |
| Subject: | Re: Sequences in DB/pgsql (once again) | ||
| References: | 1 2 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-693@lists.php.net to get a copy of this message | ||
> I'm thinking of addressing postgres error mapping (so we can use DB's
> DB_ERROR_BLAH error codes for things like these) by regular expression
> matching on pg_errormessage() output. There are really no other ways to
> do it as far as I can see. Again, the implementation will be supported
> by regression tests so we can verify that it works in different postgres
> versions.
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.
--
----------------------------------------------------------
Rui Hirokawa <louis@cityfujisawa.ne.jp>
maintainer of japanese PHP manual <hirokawa@php.net>