1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 05:37:39 +02:00

added: throw new DibiException(__METHOD__ . ' is not implemented')

This commit is contained in:
David Grudl
2007-08-28 22:25:01 +00:00
parent 6f4d2c545d
commit d5e6cedddb
7 changed files with 10 additions and 11 deletions

View File

@@ -100,7 +100,7 @@ class DibiMSSqlDriver extends DibiDriver
public function insertId() public function insertId()
{ {
return FALSE; throw new DibiException(__METHOD__ . ' is not implemented');
} }
@@ -155,7 +155,7 @@ class DibiMSSqlDriver extends DibiDriver
public function getMetaData() public function getMetaData()
{ {
trigger_error('Meta is not implemented yet.', E_USER_WARNING); throw new DibiException(__METHOD__ . ' is not implemented');
} }

View File

@@ -193,7 +193,7 @@ class DibiMySqlDriver extends DibiDriver
public function getMetaData() public function getMetaData()
{ {
trigger_error('Meta is not implemented yet.', E_USER_WARNING); throw new DibiException(__METHOD__ . ' is not implemented');
} }

View File

@@ -169,7 +169,7 @@ class DibiMySqliDriver extends DibiDriver
public function getMetaData() public function getMetaData()
{ {
trigger_error('Meta is not implemented yet.', E_USER_WARNING); throw new DibiException(__METHOD__ . ' is not implemented');
} }

View File

@@ -180,7 +180,7 @@ class DibiOdbcDriver extends DibiDriver
public function getMetaData() public function getMetaData()
{ {
trigger_error('Meta is not implemented yet.', E_USER_WARNING); throw new DibiException(__METHOD__ . ' is not implemented');
} }

View File

@@ -129,8 +129,7 @@ class DibiPdoDriver extends DibiDriver
public function escape($value, $appendQuotes = TRUE) public function escape($value, $appendQuotes = TRUE)
{ {
if (!$appendQuotes) { if (!$appendQuotes) {
trigger_error('dibi: escaping without qoutes is not supported by PDO', E_USER_WARNING); throw new DibiException('Escaping without qoutes is not supported by PDO');
return NULL;
} }
return $this->getConnection()->quote($value); return $this->getConnection()->quote($value);
} }
@@ -147,7 +146,7 @@ class DibiPdoDriver extends DibiDriver
public function getMetaData() public function getMetaData()
{ {
trigger_error('Meta is not implemented yet.', E_USER_WARNING); throw new DibiException(__METHOD__ . ' is not implemented');
} }
@@ -157,7 +156,7 @@ class DibiPdoDriver extends DibiDriver
*/ */
public function applyLimit(&$sql, $limit, $offset = 0) public function applyLimit(&$sql, $limit, $offset = 0)
{ {
trigger_error('Meta is not implemented.', E_USER_WARNING); throw new DibiException(__METHOD__ . ' is not implemented');
} }
} // class DibiPdoDriver } // class DibiPdoDriver

View File

@@ -170,7 +170,7 @@ class DibiPostgreDriver extends DibiDriver
public function getMetaData() public function getMetaData()
{ {
trigger_error('Meta is not implemented yet.', E_USER_WARNING); throw new DibiException(__METHOD__ . ' is not implemented');
} }

View File

@@ -158,7 +158,7 @@ class DibiSqliteDriver extends DibiDriver
public function getMetaData() public function getMetaData()
{ {
trigger_error('Meta is not implemented yet.', E_USER_WARNING); throw new DibiException(__METHOD__ . ' is not implemented');
} }