*
* @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
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);
*
* @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