178a179,180 > global $CFG; > 183c185,190 < $type = 'SERIAL'; --- > // Determine the datatype being used. > if($CFG->dbtype == 'mssql' || $CFG->dbtype == 'mssql_n') { > $type = 'INT IDENTITY(1,1)'; > } else { > $type = 'SERIAL'; > } 192a200,206 > // If using MSSQL, in order to allow explicit value insertions into an > // IDENTITY column, we need to run the following TSQL command to ensure that > // no SQL errors are thrown and the test cases run correctly. > if($CFG->dbtype == 'mssql' || $CFG->dbtype == 'mssql_n') { > _private_execute_sql("SET IDENTITY_INSERT $tablename ON", $db); > } >