Thread:Project:Support desk/ON DUPLICATE KEY UPDATE in a query/reply (4)

Would something like: $dbw->insert( 'user_contributions', array( 'user_id' => $userId, 'page_id' => $page, 'user_page_karma' => $userkarma ), __METHOD__, array( 'ON DUPLICATE KEY UPDATE user_page_karma='. $dbw->addQuotes( $userKarma ) ) );

maybe work?

Also don't forget to use  when manually constructing sql so that prefixed dbs work correctly.