diff --git a/dibi/drivers/mssql.php b/dibi/drivers/mssql.php index 73078d5..3d9726b 100644 --- a/dibi/drivers/mssql.php +++ b/dibi/drivers/mssql.php @@ -100,7 +100,7 @@ class DibiMSSqlDriver extends DibiDriver public function insertId() { - return FALSE; + throw new DibiException(__METHOD__ . ' is not implemented'); } @@ -155,7 +155,7 @@ class DibiMSSqlDriver extends DibiDriver public function getMetaData() { - trigger_error('Meta is not implemented yet.', E_USER_WARNING); + throw new DibiException(__METHOD__ . ' is not implemented'); } diff --git a/dibi/drivers/mysql.php b/dibi/drivers/mysql.php index 8acf533..9a0cf67 100644 --- a/dibi/drivers/mysql.php +++ b/dibi/drivers/mysql.php @@ -193,7 +193,7 @@ class DibiMySqlDriver extends DibiDriver public function getMetaData() { - trigger_error('Meta is not implemented yet.', E_USER_WARNING); + throw new DibiException(__METHOD__ . ' is not implemented'); } diff --git a/dibi/drivers/mysqli.php b/dibi/drivers/mysqli.php index 25bc74c..ffd3381 100644 --- a/dibi/drivers/mysqli.php +++ b/dibi/drivers/mysqli.php @@ -169,7 +169,7 @@ class DibiMySqliDriver extends DibiDriver public function getMetaData() { - trigger_error('Meta is not implemented yet.', E_USER_WARNING); + throw new DibiException(__METHOD__ . ' is not implemented'); } diff --git a/dibi/drivers/odbc.php b/dibi/drivers/odbc.php index 539e711..bd2168c 100644 --- a/dibi/drivers/odbc.php +++ b/dibi/drivers/odbc.php @@ -180,7 +180,7 @@ class DibiOdbcDriver extends DibiDriver public function getMetaData() { - trigger_error('Meta is not implemented yet.', E_USER_WARNING); + throw new DibiException(__METHOD__ . ' is not implemented'); } diff --git a/dibi/drivers/pdo.php b/dibi/drivers/pdo.php index dda4123..d94b312 100644 --- a/dibi/drivers/pdo.php +++ b/dibi/drivers/pdo.php @@ -129,8 +129,7 @@ class DibiPdoDriver extends DibiDriver public function escape($value, $appendQuotes = TRUE) { if (!$appendQuotes) { - trigger_error('dibi: escaping without qoutes is not supported by PDO', E_USER_WARNING); - return NULL; + throw new DibiException('Escaping without qoutes is not supported by PDO'); } return $this->getConnection()->quote($value); } @@ -147,7 +146,7 @@ class DibiPdoDriver extends DibiDriver 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) { - trigger_error('Meta is not implemented.', E_USER_WARNING); + throw new DibiException(__METHOD__ . ' is not implemented'); } } // class DibiPdoDriver diff --git a/dibi/drivers/postgre.php b/dibi/drivers/postgre.php index df3d752..b97b67d 100644 --- a/dibi/drivers/postgre.php +++ b/dibi/drivers/postgre.php @@ -170,7 +170,7 @@ class DibiPostgreDriver extends DibiDriver public function getMetaData() { - trigger_error('Meta is not implemented yet.', E_USER_WARNING); + throw new DibiException(__METHOD__ . ' is not implemented'); } diff --git a/dibi/drivers/sqlite.php b/dibi/drivers/sqlite.php index 35d6cbb..2a576bc 100644 --- a/dibi/drivers/sqlite.php +++ b/dibi/drivers/sqlite.php @@ -158,7 +158,7 @@ class DibiSqliteDriver extends DibiDriver public function getMetaData() { - trigger_error('Meta is not implemented yet.', E_USER_WARNING); + throw new DibiException(__METHOD__ . ' is not implemented'); }