1
0
mirror of synced 2024-12-14 07:06:04 +03:00
This commit is contained in:
zYne 2007-04-22 10:54:01 +00:00
parent 18944f39c6
commit c39c751889

View File

@ -661,6 +661,15 @@ class Doctrine_Expression extends Doctrine_Connection_Module
{
throw new Doctrine_Expression_Exception('method not implemented');
}
/**
* returns arcus cosine SQL string
*
* @return string
*/
public function acos($value)
{
return 'ACOS(' . $value . ')';
}
/**
* __call
*
@ -671,5 +680,6 @@ class Doctrine_Expression extends Doctrine_Connection_Module
if ($this->conn->getAttribute(Doctrine::ATTR_PORTABILITY) & Doctrine::PORTABILITY_EXPR) {
throw new Doctrine_Expression_Exception('Unknown expression ' . $m);
}
return $m . '()';
}
}