/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/framework/db/CDbCommand.php(354)
342 return $n; 343 } 344 catch(Exception $e) 345 { 346 if($this->_connection->enableProfiling) 347 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().')','system.db.CDbCommand.execute'); 348 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 349 $message = $e->getMessage(); 350 Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.', 351 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 352 if(YII_DEBUG) 353 $message .= '. The SQL statement executed was: '.$this->getText().$par; 354 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 355 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 356 } 357 } 358 359 /** 360 * Executes the SQL statement and returns query result. 361 * This method is for executing an SQL query that returns result set. 362 * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative 363 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing 364 * them in this way can improve the performance. Note that if you pass parameters in this way, 365 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa. 366 * binding methods and the input parameters this way can improve the performance.
#0 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/framework/db/CDbCommand.php(1304): CDbCommand->execute() 1299 * @return integer number of rows affected by the execution. 1300 * @since 1.1.6 1301 */ 1302 public function addColumn($table, $column, $type) 1303 { 1304 return $this->setText($this->getConnection()->getSchema()->addColumn($table, $column, $type))->execute(); 1305 } 1306 1307 /** 1308 * Builds and executes a SQL statement for dropping a DB column. 1309 * @param string $table the table whose column is to be dropped. The name will be properly quoted by the method. |
#1 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/application/helpers/update/updatedb_helper.php(1696): CDbCommand->addColumn("{{survey_links}}", "date_invited", "datetime NULL default NULL") 1691 if ($sDBDriverName=='mssql') 1692 { 1693 $sType=str_replace('text','varchar(max)',$sType); 1694 $sType=str_replace('binary','text',$sType); 1695 } 1696 Yii::app()->db->createCommand()->addColumn($sTableName,$sColumn,$sType); 1697 } 1698 1699 1700 1701 function dropDefaultValueMSSQL($fieldname, $tablename) |
#2 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/application/helpers/update/updatedb_helper.php(1014): addColumn("{{survey_links}}", "date_invited", "datetime NULL default NULL") 1009 alterLanguageCode('it-formal','it'); 1010 Yii::app()->db->createCommand()->update('{{settings_global}}',array('stg_value'=>160),"stg_name='DBVersion'"); 1011 } 1012 if ($oldversion < 161) 1013 { 1014 addColumn('{{survey_links}}','date_invited','datetime NULL default NULL'); 1015 addColumn('{{survey_links}}','date_completed','datetime NULL default NULL'); 1016 } 1017 1018 fixLanguageConsistencyAllSurveys(); 1019 echo '<br /><br />'.sprintf($clang->gT('Database update finished (%s)'),date('Y-m-d H:i:s')).'<br /><br />'; |
#3 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/application/helpers/update/update_helper.php(34): db_upgrade_all(160) 29 if(isset($subaction) && $subaction=="yes") 30 { 31 echo Yii::app()->getController()->_getAdminHeader(); 32 echo "<div style='width:90%; padding:1% 5%;background-color:#eee;'>"; 33 Yii::app()->loadHelper('update/updatedb'); 34 db_upgrade_all(intval($currentDBVersion)); 35 Yii::app()->db->createCommand()->update('{{settings_global}}', array('stg_value' => intval($dbversionnumber)), 'stg_name = \'DBVersion\''); 36 $data = "<br />".sprintf($clang->gT("Database has been successfully upgraded to version %s"),$dbversionnumber); 37 $data .= "<br /><a href='".Yii::app()->getController()->createUrl("/admin")."'>".$clang->gT("Back to main menu")."</a></div>"; 38 return $data; 39 } |
#4 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/application/controllers/admin/update.php(538): CheckForDBUpgrades("yes") 533 { 534 $clang = $this->getController()->lang; 535 Yii::app()->loadHelper("update/update"); 536 if(isset($continue) && $continue=="yes") 537 { 538 $aViewUrls['output'] = CheckForDBUpgrades($continue); 539 updateCheck(); 540 $aData['display']['header'] = false; 541 } 542 else 543 { |
#5 |
unknown(0): update->db("yes")
|
#6 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/framework/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(update, array("yes")) 102 else if($param->isDefaultValueAvailable()) 103 $ps[]=$param->getDefaultValue(); 104 else 105 return false; 106 } 107 $method->invokeArgs($object,$ps); 108 return true; 109 } 110 } |
#7 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/application/core/Survey_Common_Action.php(82): CAction->runWithParamsInternal(update, ReflectionMethod, array("continue" => "yes", "sa" => "db")) 77 $oMethod = new ReflectionMethod($this, $sDefault); 78 } 79 80 // We're all good to go, let's execute it 81 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 82 return parent::runWithParamsInternal($this, $oMethod, $params); 83 } 84 85 /** 86 * Some functions have different parameters, which are just an alias of the 87 * usual parameters we're getting in the url. This function just populates |
#8 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/framework/web/CController.php(309): Survey_Common_Action->runWithParams(array("continue" => "yes", "sa" => "db")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#9 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/framework/web/CController.php(287): CController->runAction(update) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#10 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/framework/web/CController.php(266): CController->runActionWithFilters(update, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#11 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/application/controllers/AdminController.php(158): CController->run("update") 153 Yii::app()->session['redirectopage'] = Yii::app()->request->requestUri; 154 155 $this->redirect($this->createUrl('/admin/authentication/login')); 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
#12 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/framework/web/CWebApplication.php(276): AdminController->run("update") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#13 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/framework/web/CWebApplication.php(135): CWebApplication->runController("admin/update/sa/db") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#14 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#15 |
+
–
/home/www/34ab61b960fc324dd606bf69bfc25b8b/web/limesurvey/index.php(171): CApplication->run() 166 * 167 */ 168 require_once BASEPATH . 'yii' . EXT; 169 require_once APPPATH . 'core/LSYii_Application' . EXT; 170 171 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run(); 172 173 /* End of file index.php */ 174 /* Location: ./index.php */ |