cvs: pear /MDB2/MDB2/Driver/Reverse Common.php
| From: | Lukas Smith | Date: | Fri, 14 Oct 2005 23:07:14 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver/Reverse Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35558@lists.php.net to get a copy of this message | ||
lsmith Fri Oct 14 19:07:14 2005 EDT
Modified files:
/pear/MDB2/MDB2/Driver/Reverse Common.php
Log:
- added getTableConstraintsDefinition() .. needs to be implemented in each of the drivers
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Reverse/Common.php?r1=1.13&r2=1.14&ty=u
Index: pear/MDB2/MDB2/Driver/Reverse/Common.php
diff -u pear/MDB2/MDB2/Driver/Reverse/Common.php:1.13 pear/MDB2/MDB2/Driver/Reverse/Common.php:1.14
--- pear/MDB2/MDB2/Driver/Reverse/Common.php:1.13 Mon Sep 26 10:43:44 2005
+++ pear/MDB2/MDB2/Driver/Reverse/Common.php Fri Oct 14 19:07:14 2005
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.13 2005/09/26 14:43:44 lsmith Exp $
+// $Id: Common.php,v 1.14 2005/10/14 23:07:14 lsmith Exp $
//
/**
@@ -114,6 +114,28 @@
}
// }}}
+ // {{{ getTableConstraintsDefinition()
+
+ /**
+ * get the stucture of an constraints into an array
+ *
+ * @param string $table name of table that should be used in method
+ * @param string $index name of index that should be used in method
+ * @return mixed data array on success, a MDB2 error on failure
+ * @access public
+ */
+ function getTableConstraintsDefinition($table, $index)
+ {
+ $db =& $this->getDBInstance();
+ if (PEAR::isError($db)) {
+ return $db;
+ }
+
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
+ 'getTableIndexDefinition: getting index definition is not supported');
+ }
+
+ // }}}
// {{{ getSequenceDefinition()
/**