1
0
mirror of synced 2024-12-14 07:06:04 +03:00

fixed some more E_STRICT issues

This commit is contained in:
zYne 2007-06-10 19:20:40 +00:00
parent 6ea281f1d9
commit 1238a5000a
4 changed files with 6 additions and 8 deletions

View File

@ -150,7 +150,7 @@ class Doctrine_Export_Mssql extends Doctrine_Export
* actually perform them otherwise.
* @return void
*/
public function alterTable($name, $changes, $check)
public function alterTable($name, array $changes, $check)
{
foreach ($changes as $changeName => $change) {
switch ($changeName) {

View File

@ -41,12 +41,11 @@ class Doctrine_Expression_Oracle extends Doctrine_Expression
* @param string $arg1, $arg2 ... $argN strings that will be concatinated.
* @return string
*/
public function concat($arg1, $arg2)
public function concat()
{
$args = func_get_args();
$cols = $this->getIdentifiers( $args );
return join( ' || ' , $cols );
return join(' || ' , $args);
}
/**
* return string to call a function to get a substring inside an SQL statement

View File

@ -92,12 +92,11 @@ class Doctrine_Expression_Pgsql extends Doctrine_Expression
* @param string|array(string) strings that will be concatinated.
* @return string
*/
public function concat($arg1, $arg2)
public function concat()
{
$args = func_get_args();
$cols = $this->getIdentifiers($cols);
return join(' || ' , $cols);
return join(' || ' , $args);
}
/**
* Returns the SQL string to return the current system date and time.

View File

@ -115,7 +115,7 @@ class Doctrine_Import_Mssql extends Doctrine_Import
*
* @return array
*/
public function listTriggers()
public function listTriggers($database = null)
{
$query = "SELECT name FROM sysobjects WHERE xtype = 'TR'";