Permalink
Browse files

An argument "types" has been moved to the end

  • Loading branch information...
unknown Igor
unknown authored and Igor committed Aug 31, 2012
1 parent 8382fef commit 43d6bc5250d3860bfbb861444de49ab7863459b1
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Doctrine/DBAL/Connection.php
@@ -402,11 +402,11 @@ public function fetchArray($sql, array $params = array(), array $types = array()
*
* @param string $sql The SQL-query
* @param array $params An array of params
- * @param array $types An array of types. For instance, PDO::PARAM* constants
* @param integer $colnum 0-indexed column number to retrieve
+ * @param array $types An array of types. For instance, PDO::PARAM* constants
* @return string
*/
- public function fetchColumn($sql, array $params = array(), array $types = array(), $colnum = 0)
+ public function fetchColumn($sql, array $params = array(), $colnum = 0, array $types = array())
{
return $this->executeQuery($sql, $params, $types)->fetchColumn($colnum);
}

0 comments on commit 43d6bc5

Please sign in to comment.