Commit a181b06e authored by zYne's avatar zYne

added TRIM function

parent 1473df19
......@@ -169,6 +169,17 @@ class Doctrine_Expression_Driver extends Doctrine_Connection_Module
$expression2 = $this->getIdentifier($expression2);
return 'MOD(' . $expression1 . ', ' . $expression2 . ')';
}
/**
* trim
* returns the string $str with leading and proceeding space characters removed
*
* @param string $str literal string or column name
* @return string
*/
public function trim($str)
{
return 'TRIM(' . $str . ')';
}
/**
* ltrim
* returns the string $str with leading space characters removed
......
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