cvs: pear /MDB2/MDB2/Driver/Manager Common.php /MDB2/MDB2/Driver/Reverse Common.php
| From: | Lukas Smith | Date: | Sat, 04 Sep 2004 22:44:35 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver/Manager Common.php /MDB2/MDB2/Driver/Reverse Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-23637@lists.php.net to get a copy of this message | ||
lsmith Sat Sep 4 18:44:35 2004 EDT
Modified files:
/pear/MDB2/MDB2/Driver/Manager Common.php
/pear/MDB2/MDB2/Driver/Reverse Common.php
Log:
- use MDB2_ERROR_UNSUPPORTED instead of MDB2_ERROR_NOT_CAPABLE in common implementations
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/Common.php?r1=1.6&r2=1.7&ty=u
Index: pear/MDB2/MDB2/Driver/Manager/Common.php
diff -u pear/MDB2/MDB2/Driver/Manager/Common.php:1.6 pear/MDB2/MDB2/Driver/Manager/Common.php:1.7
--- pear/MDB2/MDB2/Driver/Manager/Common.php:1.6 Thu Aug 5 08:21:51 2004
+++ pear/MDB2/MDB2/Driver/Manager/Common.php Sat Sep 4 18:44:35 2004
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.6 2004/08/05 12:21:51 lsmith Exp $
+// $Id: Common.php,v 1.7 2004/09/04 22:44:35 lsmith Exp $
//
/**
@@ -358,7 +358,7 @@
function listDatabases()
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'listDatabases: list databases is not supported');
}
@@ -374,7 +374,7 @@
function listUsers()
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'listUsers: list user is not supported');
}
@@ -390,7 +390,7 @@
function listViews()
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'listViews: list view is not supported');
}
@@ -406,7 +406,7 @@
function listFunctions()
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'listFunctions: list function is not supported');
}
@@ -422,7 +422,7 @@
function listTables()
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'listTables: list tables is not supported');
}
@@ -439,7 +439,7 @@
function listTableFields($table)
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'listTableFields: list table fields is not supported');
}
@@ -457,7 +457,7 @@
function getTableFieldDefinition($table, $field)
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'getTableFieldDefinition: table field definition is not supported');
}
@@ -557,7 +557,7 @@
function listTableIndexes($table)
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'listTableIndexes: List Indexes is not supported');
}
@@ -575,7 +575,7 @@
function getTableIndexDefinition($table, $index)
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'getTableIndexDefinition: getting index definition is not supported');
}
@@ -593,7 +593,7 @@
function createSequence($name, $start = 1)
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'createSequence: sequence creation not supported');
}
@@ -610,7 +610,7 @@
function dropSequence($name)
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'dropSequence: sequence dropping not supported');
}
@@ -626,7 +626,7 @@
function listSequences()
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'listSequences: List sequences is not supported');
}
}
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Reverse/Common.php?r1=1.5&r2=1.6&ty=u
Index: pear/MDB2/MDB2/Driver/Reverse/Common.php
diff -u pear/MDB2/MDB2/Driver/Reverse/Common.php:1.5 pear/MDB2/MDB2/Driver/Reverse/Common.php:1.6
--- pear/MDB2/MDB2/Driver/Reverse/Common.php:1.5 Fri May 21 07:43:57 2004
+++ pear/MDB2/MDB2/Driver/Reverse/Common.php Sat Sep 4 18:44:35 2004
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.5 2004/05/21 11:43:57 lsmith Exp $
+// $Id: Common.php,v 1.6 2004/09/04 22:44:35 lsmith Exp $
//
/**
@@ -100,7 +100,7 @@
function getTableFieldDefinition($table, $field)
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'getTableFieldDefinition: table field definition is not supported');
}
@@ -118,7 +118,7 @@
function getTableIndexDefinition($table, $index)
{
$db =& $GLOBALS['_MDB2_databases'][$this->db_index];
- return $db->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null,
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'getTableIndexDefinition: getting index definition is not supported');
}