1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-22 09:53:11 +01:00
This commit is contained in:
David Grudl 2007-04-25 06:44:38 +00:00
parent af7c4de14a
commit b7834a3373
2 changed files with 18 additions and 5 deletions

View File

@ -232,7 +232,7 @@ class dibi
/**
* Generates and executes SQL query
* Generates and executes SQL query - Monostate for DibiDriver::query()
*
* @param array|mixed one or more arguments
* @return int|DibiResult
@ -276,9 +276,10 @@ class dibi
/**
* Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query
* Monostate for DibiDriver::insertId()
*
* @return int
* @return int|bool int on success or FALSE on failure
*/
static public function insertId()
{
@ -288,9 +289,10 @@ class dibi
/**
* Gets the number of affected rows
* Monostate for DibiDriver::affectedRows()
*
* @return int
* @return int number of rows or FALSE on error
*/
static public function affectedRows()
{
@ -299,6 +301,19 @@ class dibi
/**
* Executes the SQL query - Monostate for DibiDriver::nativeQuery()
*
* @param string SQL statement.
* @return object|bool Result set object or TRUE on success, FALSE on failure
*/
static public function nativeQuery($sql);
{
return self::getConnection()->nativeQuery($sql);
}
static private function dumpHighlight($matches)
{
if (!empty($matches[1])) // comment

View File

@ -157,7 +157,6 @@ abstract class DibiDriver
/**
* Executes the SQL query
*
* @param string SQL statement.
* @return object|bool Result set object or TRUE on success, FALSE on failure
*/
@ -167,7 +166,6 @@ abstract class DibiDriver
/**
* Gets the number of affected rows by the last INSERT, UPDATE or DELETE query
*
* @return int number of rows or FALSE on error
*/
abstract public function affectedRows();