This commit is contained in:
parent
18944f39c6
commit
c39c751889
@ -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 . '()';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user