Commit 1238a500 authored by zYne's avatar zYne

fixed some more E_STRICT issues

parent 6ea281f1
...@@ -150,7 +150,7 @@ class Doctrine_Export_Mssql extends Doctrine_Export ...@@ -150,7 +150,7 @@ class Doctrine_Export_Mssql extends Doctrine_Export
* actually perform them otherwise. * actually perform them otherwise.
* @return void * @return void
*/ */
public function alterTable($name, $changes, $check) public function alterTable($name, array $changes, $check)
{ {
foreach ($changes as $changeName => $change) { foreach ($changes as $changeName => $change) {
switch ($changeName) { switch ($changeName) {
......
...@@ -41,12 +41,11 @@ class Doctrine_Expression_Oracle extends Doctrine_Expression ...@@ -41,12 +41,11 @@ class Doctrine_Expression_Oracle extends Doctrine_Expression
* @param string $arg1, $arg2 ... $argN strings that will be concatinated. * @param string $arg1, $arg2 ... $argN strings that will be concatinated.
* @return string * @return string
*/ */
public function concat($arg1, $arg2) public function concat()
{ {
$args = func_get_args(); $args = func_get_args();
$cols = $this->getIdentifiers( $args ); return join(' || ' , $args);
return join( ' || ' , $cols );
} }
/** /**
* return string to call a function to get a substring inside an SQL statement * return string to call a function to get a substring inside an SQL statement
......
...@@ -92,12 +92,11 @@ class Doctrine_Expression_Pgsql extends Doctrine_Expression ...@@ -92,12 +92,11 @@ class Doctrine_Expression_Pgsql extends Doctrine_Expression
* @param string|array(string) strings that will be concatinated. * @param string|array(string) strings that will be concatinated.
* @return string * @return string
*/ */
public function concat($arg1, $arg2) public function concat()
{ {
$args = func_get_args(); $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. * Returns the SQL string to return the current system date and time.
......
...@@ -115,7 +115,7 @@ class Doctrine_Import_Mssql extends Doctrine_Import ...@@ -115,7 +115,7 @@ class Doctrine_Import_Mssql extends Doctrine_Import
* *
* @return array * @return array
*/ */
public function listTriggers() public function listTriggers($database = null)
{ {
$query = "SELECT name FROM sysobjects WHERE xtype = 'TR'"; $query = "SELECT name FROM sysobjects WHERE xtype = 'TR'";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment