revert some changes in mscommon

This commit is contained in:
v-kaywon 2017-07-25 11:06:02 -07:00 committed by Jenny Tam
parent f744b7e515
commit 2fdaa8a03c

View file

@ -175,7 +175,7 @@ function GetTempTableName($table = '', $temporary = true)
// dropped once the connection is closed. Otherwise, the caller
// should take care of dropping the temp table afterwards.
$timestamp = round(microtime(true)*1000);
$someNumber = rand(0, 1000);
$prefix = '';
if ($temporary)
@ -184,7 +184,7 @@ function GetTempTableName($table = '', $temporary = true)
if (strlen($table) == 0)
$table = 'php_test_table';
return $prefix . $table . '_' . $timestamp;
return $prefix . $table . '_' . $someNumber;
}
function GetTempProcName($proc = '', $temporary = true)
@ -193,7 +193,7 @@ function GetTempProcName($proc = '', $temporary = true)
// automatically dropped once the connection is closed. Otherwise,
// the caller should take care of dropping the temp procedure afterwards.
$timestamp = round(microtime(true)*1000);
$someNumber = rand(0, 1000);
$prefix = '';
if ($temporary)
@ -202,7 +202,7 @@ function GetTempProcName($proc = '', $temporary = true)
if (strlen($proc) == 0)
$proc = 'php_test_proc';
return $prefix . $proc . '_' . $timestamp;
return $prefix . $proc . '_' . $someNumber;
}
function ExecuteQuery($conn, $query)