Skip to content

Commit

Permalink
Fixed issue #9994: Error during VV import when using Postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 9, 2015
1 parent f7bfed0 commit f221f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/admin/import_helper.php
Expand Up @@ -1950,7 +1950,7 @@ function CSVImportResponses($sFullFilePath,$iSurveyId,$aOptions=array())
// Do a model function for this can be a good idea (see activate_helper/activateSurvey)
if (Yii::app()->db->driverName=='pgsql')
{
$sSequenceName= Yii::app()->db->getSchema()->getTable("{{survey_{$iSurveyID}}}")->sequenceName;
$sSequenceName= Yii::app()->db->getSchema()->getTable("{{survey_{$iSurveyId}}}")->sequenceName;
$iActualSerial=Yii::app()->db->createCommand("SELECT last_value FROM {$sSequenceName}")->queryScalar();
if($iActualSerial<$iMaxId)
{
Expand Down

0 comments on commit f221f66

Please sign in to comment.