Commit 53c044fc authored by lsmith's avatar lsmith

- ported concat() from MDB2

parent f53a2393
......@@ -110,4 +110,18 @@ class Doctrine_Expression_Mysql extends Doctrine_Expression_Driver
{
return 'UUID()';
}
}
\ No newline at end of file
/**
* Returns string to concatenate two or more string parameters
*
* @param string $value1
* @param string $value2
* @param string $values...
* @return string to concatenate two strings
**/
function concat($value1, $value2)
{
$args = func_get_args();
return 'CONCAT('.implode(', ', $args).')';
}
}
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