Adjust comments to the new constants

This commit is contained in:
Joas Schilling 2016-01-26 10:45:29 +01:00
parent 3da78c8f1c
commit 90ce876378
3 changed files with 5 additions and 3 deletions

View File

@ -109,7 +109,7 @@ class ExpressionBuilder implements IExpressionBuilder {
*
* @param mixed $x The left 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
*
* @return string

View File

@ -21,11 +21,13 @@
namespace OC\DB\QueryBuilder;
use OCP\DB\QueryBuilder\IQueryBuilder;
class OCIExpressionBuilder extends ExpressionBuilder {
public function eq($x, $y, $type = null) {
$x = $this->helper->quoteColumnName($x);
$y = $this->helper->quoteColumnName($y);
if ($type === \PDO::PARAM_STR) {
if ($type === IQueryBuilder::PARAM_STR) {
$x = new QueryFunction('to_char(' . $x . ')');
}
return $this->expressionBuilder->eq($x, $y);

View File

@ -84,7 +84,7 @@ interface IExpressionBuilder {
*
* @param mixed $x The left 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.
*
* @return string