Adjust comments to the new constants
This commit is contained in:
parent
3da78c8f1c
commit
90ce876378
|
@ -109,7 +109,7 @@ class ExpressionBuilder implements IExpressionBuilder {
|
||||||
*
|
*
|
||||||
* @param mixed $x The left expression.
|
* @param mixed $x The left expression.
|
||||||
* @param mixed $y The right expression.
|
* @param mixed $y The right expression.
|
||||||
* @param int|null $type one of the \PDO::PARAM_* constants
|
* @param int|null $type one of the IQueryBuilder::PARAM_* constants
|
||||||
* required when comparing text fields for oci compatibility
|
* required when comparing text fields for oci compatibility
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
|
|
|
@ -21,11 +21,13 @@
|
||||||
|
|
||||||
namespace OC\DB\QueryBuilder;
|
namespace OC\DB\QueryBuilder;
|
||||||
|
|
||||||
|
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||||
|
|
||||||
class OCIExpressionBuilder extends ExpressionBuilder {
|
class OCIExpressionBuilder extends ExpressionBuilder {
|
||||||
public function eq($x, $y, $type = null) {
|
public function eq($x, $y, $type = null) {
|
||||||
$x = $this->helper->quoteColumnName($x);
|
$x = $this->helper->quoteColumnName($x);
|
||||||
$y = $this->helper->quoteColumnName($y);
|
$y = $this->helper->quoteColumnName($y);
|
||||||
if ($type === \PDO::PARAM_STR) {
|
if ($type === IQueryBuilder::PARAM_STR) {
|
||||||
$x = new QueryFunction('to_char(' . $x . ')');
|
$x = new QueryFunction('to_char(' . $x . ')');
|
||||||
}
|
}
|
||||||
return $this->expressionBuilder->eq($x, $y);
|
return $this->expressionBuilder->eq($x, $y);
|
||||||
|
|
|
@ -84,7 +84,7 @@ interface IExpressionBuilder {
|
||||||
*
|
*
|
||||||
* @param mixed $x The left expression.
|
* @param mixed $x The left expression.
|
||||||
* @param mixed $y The right expression.
|
* @param mixed $y The right expression.
|
||||||
* @param int|null $type @since 9.0.0 one of the \PDO::PARAM_* constants
|
* @param int|null $type @since 9.0.0 one of the IQueryBuilder::PARAM_* constants
|
||||||
* required when comparing text fields for oci compatibility.
|
* required when comparing text fields for oci compatibility.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
|
|
Loading…
Reference in New Issue