/data/kunden/021/limesurvey/vendor/yiisoft/yii/framework/db/CDbCommand.php(543)
531 { 532 if($this->_connection->enableProfiling) 533 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 534 535 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 536 $message=$e->getMessage(); 537 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 538 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 539 540 if(YII_DEBUG) 541 $message.='. The SQL statement executed was: '.$this->getText().$par; 542 543 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 544 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 545 } 546 } 547 548 /** 549 * Builds a SQL SELECT statement from the given query specification. 550 * @param array $query the query specification in name-value pairs. The following 551 * query options are supported: {@link select}, {@link distinct}, {@link from}, 552 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 553 * {@link limit}, {@link offset} and {@link union}. 554 * @throws CDbException if "from" key is not present in given query parameter 555 * @return string the SQL statement
#0 |
+
–
/data/kunden/021/limesurvey/vendor/yiisoft/yii/framework/db/CDbCommand.php(396): CDbCommand->queryInternal() 391 * An empty array is returned if the query results in nothing. 392 * @throws CException execution failed 393 */ 394 public function queryAll($fetchAssociative=true,$params=array()) 395 { 396 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 397 } 398 399 /** 400 * Executes the SQL statement and returns the first row of the result. 401 * This is a convenient method of {@link query} when only the first row of data is needed. |
#1 |
+
–
/data/kunden/021/limesurvey/vendor/yiisoft/yii/framework/db/schema/pgsql/CPgsqlSchema.php(278): CDbCommand->queryAll() 273 WHERE nspname=:schema)) 274 EOD; 275 $command=$this->getDbConnection()->createCommand($sql); 276 $command->bindValue(':table',$table->name); 277 $command->bindValue(':schema',$table->schemaName); 278 foreach($command->queryAll() as $row) 279 { 280 if($row['contype']==='p') // primary key 281 $this->findPrimaryKey($table,$row['indkey']); 282 elseif($row['contype']==='f') // foreign key 283 $this->findForeignKey($table,$row['consrc']); |
#2 |
+
–
/data/kunden/021/limesurvey/vendor/yiisoft/yii/framework/db/schema/pgsql/CPgsqlSchema.php(115): CPgsqlSchema->findConstraints() 110 { 111 $table=new CPgsqlTableSchema; 112 $this->resolveTableNames($table,$name); 113 if(!$this->findColumns($table)) 114 return null; 115 $this->findConstraints($table); 116 117 if(is_string($table->primaryKey) && isset($this->_sequences[$table->rawName.'.'.$table->primaryKey])) 118 $table->sequenceName=$this->_sequences[$table->rawName.'.'.$table->primaryKey]; 119 elseif(is_array($table->primaryKey)) 120 { |
#3 |
+
–
/data/kunden/021/limesurvey/vendor/yiisoft/yii/framework/db/schema/CDbSchema.php(96): CPgsqlSchema->loadTable() 091 { 092 $key='yii:dbschema'.$this->_connection->connectionString.':'.$this->_connection->username.':'.$name; 093 $table=$cache->get($key); 094 if($refresh===true || $table===false) 095 { 096 $table=$this->loadTable($realName); 097 if($table!==null) 098 $cache->set($key,$table,$duration); 099 } 100 $this->_tables[$name]=$table; 101 } |
#4 |
+
–
/data/kunden/021/limesurvey/application/core/LSYii_Application.php(179): CDbSchema->getTable() 174 /* encrypt emailsmtppassword value, because emailsmtppassword in database is also encrypted 175 it would be decrypted in LimeMailer when needed */ 176 $this->config['emailsmtppassword'] = LSActiveRecord::encryptSingle($this->config['emailsmtppassword']); 177 178 /* Check DB : let throw error if DB is broken issue #14875 */ 179 $settingsTableExist = Yii::app()->db->schema->getTable('{{settings_global}}'); 180 /* No table settings_global : not installable or updatable */ 181 if (empty($settingsTableExist)) { 182 /* settings_global was created before 1.80 : not updatable version or not installed (but table exist) */ 183 Yii::log("LimeSurvey table settings_global not found in database", 'error'); 184 throw new CDbException("LimeSurvey table settings_global not found in database"); |
#5 |
+
–
/data/kunden/021/limesurvey/application/core/LSYii_Application.php(93): LSYii_Application->setConfigs() 88 89 /* Construct CWebApplication */ 90 parent::__construct($aApplicationConfig); 91 92 /* Because we have app now : we have to call again the config (usage of Yii::app() for publicurl) */ 93 $this->setConfigs(); 94 /* Since session can be set by DB : need to be set again … */ 95 $this->setSessionByDB($aApplicationConfig); 96 97 /* Update asset manager path and url only if not directly set in aApplicationConfig (from config.php), 98 * must do after reloading to have valid publicurl (the tempurl) */ |
#6 |
+
–
/data/kunden/021/limesurvey/vendor/yiisoft/yii/framework/YiiBase.php(132): LSYii_Application->__construct() 127 * to the constructor of the application class. 128 * @return mixed the application instance 129 */ 130 public static function createApplication($class,$config=null) 131 { 132 return new $class($config); 133 } 134 135 /** 136 * Returns the application singleton or null if the singleton has not been created yet. 137 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#7 |
+
–
/data/kunden/021/limesurvey/index.php(192): YiiBase::createApplication() 187 require_once APPPATH . 'core/LSYii_Application' . EXT; 188 189 $config = require_once(APPPATH . 'config/internal' . EXT); 190 191 Yii::$enableIncludePath = false; 192 Yii::createApplication('LSYii_Application', $config)->run(); 193 194 /* End of file index.php */ 195 /* Location: ./index.php */ |