D7 API documentation
What's New
Modules
Main module in old core
addSecondsToDateTime
castToChar
convertFromDb
convertToDb
forSql
formatDate
getAliasLength
getAscendingOrder
getCharToDateFunction
getColumnTypeByField
getConcatFunction
getConverter
getCurrentDateFunction
getCurrentDateTimeFunction
getDateToCharFunction
getDatetimeToDateFunction
getDescendingOrder
getFieldByColumnType
getIsNullFunction
getLeftQuote
getLengthFunction
getQueryDelimiter
getRightQuote
getSubstrFunction
getTopSql
prepareAssignment
prepareInsert
prepareMerge
prepareUpdate
quote
softCastTextToChar
getFieldByColumnType
\Bitrix\Main\Entity\ScalarField public \Bitrix\Main\DB\SqlHelper::getFieldByColumnType( string $name, mixed $type, array $parameters = null );
This non-static method returns descendant exception from Entity\ScalarField
that matches to database type.
Parameters
Parameter | Description | Version |
---|---|---|
$name | Database column name. | |
$type | Database specific type. | |
$parameters | Additional information. |
Examples
© «Bitrix24», 2001-2024
Up