Commit 65d4158c authored by zYne's avatar zYne

Removed getState() and concat() methods from mysql driver, getState() is not...

Removed getState() and concat() methods from mysql driver, getState() is not needed (it resides at transaction class) and concat is located at mysql expression driver
parent 051077c6
......@@ -85,7 +85,7 @@ class Doctrine_Connection_Firebird extends Doctrine_Connection {
* 'rw' => 'READ WRITE' | 'READ ONLY'
* @return void
*/
function setTransactionIsolation($isolation, $options = array()) {
public function setTransactionIsolation($isolation, $options = array()) {
switch ($isolation) {
case 'READ UNCOMMITTED':
$ibase_isolation = 'READ COMMITTED RECORD_VERSION';
......
......@@ -111,26 +111,4 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common {
$query = "SET SESSION TRANSACTION ISOLATION LEVEL $isolation";
return $this->dbh->query($query);
}
/**
* Returns string to concatenate two or more string parameters
*
* @param string $value1
* @param string $value2
* @param string $values...
* @return string a concatenation of two or more strings
*/
public function concat($value1, $value2) {
$args = func_get_args();
return "CONCAT(".implode(', ', $args).")";
}
/**
* returns the state of this connection
*
* @see Doctrine_Connection_Transaction::STATE_* constants
* @return integer the connection state
*/
public function getState() {
return 0; // @todo FIXME not working!
}
}
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