• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/db/pgsqlconnection.php
  • Класс: BitrixMainDBPgsqlConnection
  • Вызов: PgsqlConnection::getInsertedId
public function getInsertedId()
{
	try
	{
		return (int)$this->query('SELECT bx_lastval() as X')->fetch()['X'];
	}
	catch (SqlQueryException)
	{
		return 0;
	}
}