PHP Класс Newscoop\Query\MysqlField

..) FIELD returns the index (position) of str in the str1, str2, str3, ... list. Returns 0 if str is not found. If all arguments to FIELD() are strings, all arguments are compared as strings. If all arguments are numbers, they are compared as numbers. Otherwise, the arguments are compared as double. If str is NULL, the return value is 0 because NULL fails equality comparison with any value. FIELD() is the complement of ELT(). (Taken from MySQL documentation.)
Автор: Jeremy Hicks ([email protected])
Наследование: extends Doctrine\ORM\Query\AST\Functions\FunctionNode
Показать файл Открыть проект

Открытые методы

Метод Описание
getSql ( Doctrine\ORM\Query\SqlWalker $sqlWalker )
parse ( Parser $parser )

Описание методов

getSql() публичный метод

public getSql ( Doctrine\ORM\Query\SqlWalker $sqlWalker )
$sqlWalker Doctrine\ORM\Query\SqlWalker

parse() публичный метод

public parse ( Parser $parser )
$parser Doctrine\ORM\Query\Parser