• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/db/pgsqlsqlhelper.php
  • Класс: BitrixMainDBPgsqlSqlHelper
  • Вызов: PgsqlSqlHelper::forSql
public function forSql($value, $maxLength = 0)
{
	if ($maxLength > 0)
	{
		$value = mb_substr($value, 0, $maxLength);
	}

	return pg_escape_string($this->connection->getResource(), $value);
}