Hi bros,
I have used gii to setup the crud for my oracle tables, but encounter below error when doing ‘UPDATE’ or ‘DELETE’ operations. ‘CREATE’ and ‘VIEW’ are working fine. I’m using oci connection.
Description
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 936 OCIStmtExecute: ORA-00936: missing expression
(/tmp/PDO_OCI-1.0/oci_statement.c:142)
Source File
/var/www/yii/framework/db/CDbCommand.php(234)
00222: if($this->_connection->enableProfiling)
00223: Yii::endProfile(‘system.db.CDbCommand.execute(’.$this->getText().’)’,‘system.db.CDbCommand.execute’);
00224:
00225: return $n;
00226: }
00227: catch(Exception $e)
00228: {
00229: if($this->_connection->enableProfiling)
00230: Yii::endProfile(‘system.db.CDbCommand.execute(’.$this->getText().’)’,‘system.db.CDbCommand.execute’);
00231: Yii::log('Error in executing SQL: '.$this->getText().$par,CLogger::LEVEL_ERROR,‘system.db.CDbCommand’);
00232: $errorInfo = $e instanceof PDOException ? $e->errorInfo : null;
00233:
00234: throw new CDbException(Yii::t(‘yii’,‘CDbCommand failed to execute the SQL statement: {error}’,
00235: array(’{error}’=>$e->getMessage())),(int)$e->getCode(),$errorInfo);
00236: }
00237: }
Stack Trace
#0 /var/www/yii/framework/db/ar/CActiveRecord.php(1591): CDbCommand->execute()
#1 /var/www/yii/framework/db/ar/CActiveRecord.php(1047): CActiveRecord->updateByPk(‘22’, Array)
#2 /var/www/yii/framework/db/ar/CActiveRecord.php(759): CActiveRecord->update(NULL)
#3 /var/www/vams/protected/controllers/SystemSettingController.php(96): CActiveRecord->save()
#4 [internal function]: SystemSettingController->actionUpdate(‘22’)
#5 /var/www/yii/framework/web/actions/CInlineAction.php(47): ReflectionMethod->invokeArgs(Object(SystemSettingController), Array)
#6 /var/www/yii/framework/web/CController.php(300): CInlineAction->run()
#7 /var/www/yii/framework/web/filters/CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#8 /var/www/yii/framework/web/filters/CFilter.php(41): CFilterChain->run()
#9 /var/www/yii/framework/web/CController.php(1049): CFilter->filter(Object(CFilterChain))
#10 /var/www/yii/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(Object(CFilterChain))
#11 /var/www/yii/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#12 /var/www/yii/framework/web/CController.php(283): CFilterChain->run()
#13 /var/www/yii/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#14 /var/www/yii/framework/web/CWebApplication.php(324): CController->run(‘update’)