1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-29 16:59:49 +02:00

* support for sequence name in dibi::insertId() & DibiPostgreDriver::insertId()

* implemented DibiPostgreDriver::insertId()
* implemented DibiPostgreDriver::delimite()
This commit is contained in:
David Grudl
2007-08-28 23:17:34 +00:00
parent d5e6cedddb
commit 53874f22d4
7 changed files with 53 additions and 14 deletions

View File

@@ -289,11 +289,12 @@ class dibi
* Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query
* Monostate for DibiDriver::insertId()
*
* @return int|bool int on success or FALSE on failure
* @param string optional sequence name for DibiPostgreDriver
* @return int|FALSE int on success or FALSE on failure
*/
public static function insertId()
public static function insertId($sequence=NULL)
{
return self::getConnection()->insertId();
return self::getConnection()->insertId($sequence);
}
@@ -433,6 +434,7 @@ class dibi
/**
* Create a new substitution pair for indentifiers
*
* @param string from
* @param string to
* @return void
@@ -446,6 +448,7 @@ class dibi
/**
* Remove substitution pair
*
* @param string from
* @return void
*/
@@ -458,6 +461,7 @@ class dibi
/**
* Process substitutions in string
*
* @param string
* @return string
*/