Skip to content

Commit

Permalink
Fixed issue #4653: MS SQL Server not using autonumber_start when reac…
Browse files Browse the repository at this point in the history
…tivatin survey

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9209 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Oct 11, 2010
1 parent cfcd2b7 commit 899412a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions admin/activate.php
Expand Up @@ -401,7 +401,7 @@
mssql_drop_constraint('id','survey_'.$postsid);
$autonumberquery = "alter table {$dbprefix}survey_{$postsid} drop column id ";
$connect->Execute($autonumberquery);
$autonumberquery = "alter table {$dbprefix}survey_{$postsid} add column id int identity({$row['autonumber_start']},1)";
$autonumberquery = "alter table {$dbprefix}survey_{$postsid} add [id] int identity({$row['autonumber_start']},1)";
$connect->Execute($autonumberquery);
}
else
Expand Down Expand Up @@ -478,6 +478,3 @@ function mssql_drop_primary_index($tablename)
modify_database("","ALTER TABLE [prefix_{$tablename}] DROP CONSTRAINT {$primarykey}"); echo $modifyoutput; flush();
}
}


?>

0 comments on commit 899412a

Please sign in to comment.