Re: Patch suggestion regarding pgsql nextid
| From: | Tomas V.V.Cox | Date: | Thu, 02 Aug 2001 23:16:53 +0000 |
| Subject: | Re: Patch suggestion regarding pgsql nextid | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1258@lists.php.net to get a copy of this message | ||
Troels Arvin wrote:
>
> Hello,
>
> I couldn't get PEAR to work with my Postgresql (v. 7.1.2). Maybe because
> Postgresql has changed it's error message when running nextid() on a
> non-existing sequence?
Yes, you're true. Hope we get Postgres error codes some day :)
> Anyways, the patch suggestion is posted below. The patch is for current
> CVS.
Thanks, it's commited now in the last CVS release.
> By the way: I think it's very disturbing that PEAR enforces
> that sequences be named "...._seq". - But I'm afraid that this
> is too late to change now :-(
Perhaps no very db-admin friendly, but very intuitive to the developer
because he doesn't need to remember the sequence name for certain table
(it's just the same name).
Tomas V.V.Cox