D7 API documentation
What's New
Modules
Main module in old core
addSecondsToDateTime
castToChar
convertDatetimeField
convertStringField
convertTextField
convertToDb
forSql
formatDate
getAliasLength
getAscendingOrder
getCharToDateFunction
getColumnTypeByField
getConcatFunction
getConverter
getCurrentDateFunction
getCurrentDateTimeFunction
getDateToCharFunction
getDatetimeToDateFunction
getDescendingOrder
getFieldByColumnType
getIsNullFunction
getLeftQuote
getLengthFunction
getQueryDelimiter
getRightQuote
getTopSql
prepareMerge
quote
softCastTextToChar
convertToDb
string public \Bitrix\Main\DB\OracleSqlHelper::convertToDb( mixed $value, \Bitrix\Main\Entity\ScalarField $field );
This non-static method converts values to the string according to the column type to use it in a SQL query.
Parameters
Parameter | Description | Version |
---|---|---|
$value | Value to be converted | |
$field | "Source" type. |
Exceptions
Examples
© «Bitrix24», 2001-2024
Up