/**
  * @dataProvider dataLiteral
  *
  * @param mixed $input
  * @param string|null $type
  */
 public function testLiteral($input, $type)
 {
     /** @var \OC\DB\QueryBuilder\Literal $actual */
     $actual = $this->expressionBuilder->literal($input, $type);
     $this->assertInstanceOf('\\OC\\DB\\QueryBuilder\\Literal', $actual);
     $this->assertEquals($this->doctrineExpressionBuilder->literal($input, $type), $actual->__toString());
 }
 /**
  * Returns a IQueryFunction that casts the column to the given type
  *
  * @param string $column
  * @param mixed $type One of IQueryBuilder::PARAM_*
  * @return string
  */
 public function castColumn($column, $type)
 {
     if ($type === IQueryBuilder::PARAM_INT) {
         $column = $this->helper->quoteColumnName($column);
         return new QueryFunction('CAST(' . $column . ' AS INT)');
     }
     return parent::castColumn($column, $type);
 }