From ce209ebd4aa04adcee6b6f96fec8078c51b46d1f Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Wed, 2 May 2007 01:43:57 +0000 Subject: [PATCH] missing log_id in insert causes sadness on Oracle, change to use standard pkey generator --- includes/LogPage.php | 2 ++ 1 file changed, 2 insertions(+) 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 ), -- 2.20.1