From: River Tarnell Date: Wed, 2 May 2007 01:43:57 +0000 (+0000) Subject: missing log_id in insert causes sadness on Oracle, change to use standard pkey generator X-Git-Tag: 1.31.0-rc.0~53131 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=ce209ebd4aa04adcee6b6f96fec8078c51b46d1f;p=lhc%2Fweb%2Fwiklou.git missing log_id in insert causes sadness on Oracle, change to use standard pkey generator --- diff --git a/includes/LogPage.php b/includes/LogPage.php index af03bbbae8..dcfe587137 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -55,10 +55,12 @@ class LogPage { $dbw = wfGetDB( DB_MASTER ); $uid = $wgUser->getID(); + $log_id = $dbw->nextSequenceValue( 'log_log_id_seq' ); $this->timestamp = $now = wfTimestampNow(); $dbw->insert( 'logging', array( + 'log_id' => $log_id, 'log_type' => $this->type, 'log_action' => $this->action, 'log_timestamp' => $dbw->timestamp( $now ),