1
0
mirror of synced 2025-02-20 22:23:14 +03:00

- ported concat() from MDB2

This commit is contained in:
lsmith 2008-01-10 08:49:13 +00:00
parent f53a239334
commit 53c044fc4d

View File

@ -110,4 +110,18 @@ class Doctrine_Expression_Mysql extends Doctrine_Expression_Driver
{
return 'UUID()';
}
}
/**
* 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).')';
}
}