Home » Database » DB » Bug #1666
nextId don't create sequence with postgresql and mysql database
Details
| Submitted | 2004-06-17 11:21 UTC |
|---|---|
| From | pierre dot malvy at linac dot org |
| Assigned | danielc |
| Status | Bogus |
| Package | DB |
| PHP Version | 4.3.4 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-06-17 11:21 UTC] pierre dot malvy at linac dot org
Description:
------------
nexId($seq_name) don't create sequence with postgresql and mysql
in pqsql.php v 1.26, line 482:
$result->getCode() == DB_ERROR_NOSUCHTABLE) {
Replace by:
$result->getCode() < 0 ) {
in mysql.php v 1.23, Ligne 532 :
$result->getCode() == DB_ERROR_NOSUCHTABLE
Replace by:
$result->getCode() < 0
[2004-06-17 12:03 UTC] pierre dot malvy at linac dot org
This error is also in the pear-db package 1.6.4
I just put the script version for a great research facility of the number of line ;)
[2004-06-17 15:08 UTC] pierre dot malvy at linac dot org
Sorry you're right.