string public \Bitrix\Main\DB\SqlQueryException::getQuery( );
This non-static method returns text of SQL query.
No parameters