1
0
mirror of synced 2024-12-13 14:56:01 +03:00

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

This commit is contained in:
zYne 2006-11-01 11:25:53 +00:00
parent 051077c6d7
commit 65d4158c71
2 changed files with 1 additions and 23 deletions

View File

@ -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';

View File

@ -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!
}
}