Skip to content

Commit

Permalink
- Fixed bug #751: Adding additional language to surveys fails with my…
Browse files Browse the repository at this point in the history
…sql5 in strict & ANSI mode.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@2803 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Apr 27, 2007
1 parent 56e02a5 commit 705c935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/database.php
Expand Up @@ -960,7 +960,7 @@ function get_max_question_order($gid)
$usresult = $connect->Execute($usquery) or die("Error deleting obsolete surveysettings<br />".htmlspecialchars($usquery)."<br /><br /><strong>".htmlspecialchars($connect->ErrorMsg()));
if ($usresult->RecordCount()==0)
{
$usquery = "insert into ".db_table_name('surveys_languagesettings')." SET surveyls_survey_id={$_POST['sid']}, surveyls_language='".$langname."'";
$usquery = "insert into ".db_table_name('surveys_languagesettings')." SET surveyls_survey_id={$_POST['sid']}, surveyls_language='".$langname."', surveyls_title=''";
$usresult = $connect->Execute($usquery) or die("Error deleting obsolete surveysettings<br />".htmlspecialchars($usquery)."<br /><br /><strong>".htmlspecialchars($connect->ErrorMsg()));
}
}
Expand Down
2 changes: 1 addition & 1 deletion common.php
Expand Up @@ -127,7 +127,7 @@


if ($databasetype=='mysql') {
if ($debug==1) { @$connect->Execute("SET SESSION SQL_MODE='STRICT_ALL_TABLES, ANSI'"); }
if ($debug==1) { @$connect->Execute("SET SESSION SQL_MODE='STRICT_ALL_TABLES,ANSI'"); }
$connect->Execute("SET CHARACTER SET 'utf8'");
}

Expand Down

0 comments on commit 705c935

Please sign in to comment.