/**
  * {@inheritdoc}
  */
 public function getSql(SqlWalker $sqlWalker)
 {
     $function = FunctionFactory::create($sqlWalker->getConnection()->getDatabasePlatform()->getName(), $this->name, $this->parameters);
     return $function->getSql($sqlWalker);
 }
 /**
  * @dataProvider platformFunctionsDataProvider
  * @param string $platform
  * @param string $function
  */
 public function testCreate($platform, $function)
 {
     $functionInstance = FunctionFactory::create($platform, $function, array());
     $this->assertInstanceOf('Oro\\ORM\\Query\\AST\\Platform\\Functions\\PlatformFunctionNode', $functionInstance);
 }