cvs: pear /MDB2/MDB2/Driver/Manager mysql.php mysqli.php
| From: | Lukas Smith | Date: | Fri, 14 Oct 2005 09:40:30 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver/Manager mysql.php mysqli.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35510@lists.php.net to get a copy of this message | ||
lsmith Fri Oct 14 05:40:30 2005 EDT
Modified files:
/pear/MDB2/MDB2/Driver/Manager mysql.php mysqli.php
Log:
- added error code to createIndex() errors
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/mysql.php?r1=1.39&r2=1.40&ty=u
Index: pear/MDB2/MDB2/Driver/Manager/mysql.php
diff -u pear/MDB2/MDB2/Driver/Manager/mysql.php:1.39 pear/MDB2/MDB2/Driver/Manager/mysql.php:1.40
--- pear/MDB2/MDB2/Driver/Manager/mysql.php:1.39 Thu Oct 13 10:45:29 2005
+++ pear/MDB2/MDB2/Driver/Manager/mysql.php Fri Oct 14 05:40:28 2005
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: mysql.php,v 1.39 2005/10/13 14:45:29 lsmith Exp $
+// $Id: mysql.php,v 1.40 2005/10/14 09:40:28 lsmith Exp $
//
require_once 'MDB2/Driver/Manager/Common.php';
@@ -569,7 +569,8 @@
if (array_key_exists('primary', $definition) &&
$definition['primary']) {
if (strtolower($name) != 'primary') {
- return $db->raiseError('Primary Key may must be named primary');
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
+ 'Primary Key may must be named primary');
}
$type = 'PRIMARY';
$name = 'KEY';
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/mysqli.php?r1=1.26&r2=1.27&ty=u
Index: pear/MDB2/MDB2/Driver/Manager/mysqli.php
diff -u pear/MDB2/MDB2/Driver/Manager/mysqli.php:1.26 pear/MDB2/MDB2/Driver/Manager/mysqli.php:1.27
--- pear/MDB2/MDB2/Driver/Manager/mysqli.php:1.26 Thu Oct 13 10:45:29 2005
+++ pear/MDB2/MDB2/Driver/Manager/mysqli.php Fri Oct 14 05:40:29 2005
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: mysqli.php,v 1.26 2005/10/13 14:45:29 lsmith Exp $
+// $Id: mysqli.php,v 1.27 2005/10/14 09:40:29 lsmith Exp $
//
require_once 'MDB2/Driver/Manager/Common.php';
@@ -569,7 +569,8 @@
if (array_key_exists('primary', $definition) &&
$definition['primary']) {
if (strtolower($name) != 'primary') {
- return $db->raiseError('Primary Key may must be named primary');
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
+ 'Primary Key may must be named primary');
}
$type = 'PRIMARY';
$name = 'KEY';