Re: MDB - insert query
| From: | Alexey Borzov | Date: | Fri, 07 Mar 2003 17:14:15 +0000 |
| Subject: | Re: MDB - insert query | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4092@lists.php.net to get a copy of this message | ||
Christian Karlsen wrote:
Ok! thanks for the quick response By the way, I think I've found a bug in currId() in pgsql.php. code: if (MDB::isError($result = $this->queryOne("SELECT last_value FROM $seqname")))Looks like you've found another bug as well. SELECT last_value is a Bad Way of getting current value of PostgreSQL sequence, there are possible concurrency problems. The query should be "SELECT currval('$seqname')"