Proble with inserting category when using postgre

vflirt - November 5, 2008 - 09:21
Project:Drupal
Version:6.6
Component:aggregator.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

In function "aggregator_save_category" in aggregator.module when you insert aggregator category you are trying to get the last insert id from nonexisting database table:

db_query("INSERT INTO {aggregator_category} (title, description, block) VALUES ('%s', '%s', 5)", $edit['title'], $edit['description']);
$link_path .= db_last_insert_id('aggregator', 'cid');
$op = 'insert';

As you see the table is : "aggregator_category" so you need to call db_last_insert_id('aggregator_category', 'cid');

 
 

Drupal is a registered trademark of Dries Buytaert.