Skip to content

Commit

Permalink
Fixed survey import/copy not working in MSSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 19, 2012
1 parent 12de20c commit ecbc746
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 122 deletions.
9 changes: 7 additions & 2 deletions application/controllers/InstallerController.php
Expand Up @@ -969,8 +969,13 @@ function _writeConfigFile()
$dbdata .="\t\t\t" . "'username' => '$sDatabaseUser'," . "\n"
."\t\t\t" . "'password' => '$sDatabasePwd'," . "\n"
."\t\t\t" . "'charset' => 'utf8'," . "\n"
."\t\t\t" . "'tablePrefix' => '$sDatabasePrefix'," . "\n"
."\t\t" . ")," . "\n"
."\t\t\t" . "'tablePrefix' => '$sDatabasePrefix'," . "\n";

if (in_array($sDatabaseType, array('mssql', 'sqlsrv'))) {
$dbdata .="\t\t\t" ."'initSQLs'=>array('SET DATEFORMAT ymd;','SET QUOTED_IDENTIFIER ON;')," . "\n";
}

$dbdata .="\t\t" . ")," . "\n"
."\t\t" . "" . "\n"

."\t\t" . "// Uncomment the following line if you need table-based sessions". "\n"
Expand Down

0 comments on commit ecbc746

Please sign in to comment.