Commit 69ebb5b9 authored by Kim Hemsø Rasmussen's avatar Kim Hemsø Rasmussen

Added support for Guid, Regex and Locate. Doctrine make use of these.

parent b372ce8f
......@@ -383,4 +383,23 @@ class DrizzlePlatform extends AbstractPlatform
return $item;
return $item;
}
public function getLocateExpression($str, $substr, $startPos = false)
{
if ($startPos == false) {
return 'LOCATE(' . $substr . ', ' . $str . ')';
} else {
return 'LOCATE(' . $substr . ', ' . $str . ', '.$startPos.')';
}
}
public function getGuidExpression()
{
return 'UUID()';
}
public function getRegexpExpression()
{
return 'RLIKE';
}
}
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