fix uft8 data for pdo memory test
This commit is contained in:
parent
cc54c60ede
commit
734e80cd0c
|
@ -1220,9 +1220,17 @@ function NumRows($conn, $tableName)
|
|||
|
||||
|
||||
function InsertQuery($tableName)
|
||||
{
|
||||
if (UseUTF8data())
|
||||
{
|
||||
include_once 'MsData_UTF8.inc';
|
||||
return (InsertQueryExUTF8($tableName, rand(1, 20)));
|
||||
}
|
||||
else
|
||||
{
|
||||
return (InsertQueryEx($tableName, rand(1, 20)));
|
||||
}
|
||||
}
|
||||
|
||||
function InsertRows($conn, $tableName, $rowCount)
|
||||
{
|
||||
|
|
|
@ -23,6 +23,7 @@ function MemCheck($noPasses, $noRows1, $noRows2, $startStep, $endStep, $leakThre
|
|||
|
||||
Trace("Execution setup: $noPasses passes over a table with $noRows1 => ".($noRows1 + $noRows2)." rows.\n");
|
||||
$conn1 = Connect();
|
||||
$conn1->setAttribute(PDO::SQLSRV_ATTR_ENCODING, PDO::SQLSRV_ENCODING_UTF8);
|
||||
SetUTF8Data(true);
|
||||
|
||||
CreateTable($conn1, $tableName);
|
||||
|
|
Loading…
Reference in a new issue