• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/import.php
  • Класс: BitrixSaleLocationImportImportProcess
  • Вызов: ImportProcess::createTempTable
private function createTempTable()
{
	if($this->data['rebalance']['tableCreated'])
		return;

	$tableName = self::TREE_REBALANCE_TEMP_TABLE_NAME;

	if($this->dbConnection->isTableExists($tableName))
		$this->dbConnection->query("truncate table {$tableName}");
	else
	{

		if($this->dbConnType == self::DB_TYPE_ORACLE)
		{
			$this->dbConnection->query("create table {$tableName} (
				I NUMBER(18),
				L NUMBER(18),
				R NUMBER(18),
				D NUMBER(18)
			)");
		}
		else
		{
			$this->dbConnection->query("create table {$tableName} (
				I int,
				L int,
				R int,
				D int
			)");
		}

	}

	$this->data['rebalance']['tableCreated'] = true;
}