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

added TRIM function

This commit is contained in:
zYne 2007-08-11 22:12:17 +00:00
parent 1473df1976
commit a181b06e70

View File

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