Download & Extend

Problem with inserting category when using postgresql

Project:Drupal core
Version:6.6
Component:aggregator.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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');

Comments

#1

Title:Proble with inserting category when using postgre» Problem with inserting category when using postgresql

Is this still an issue using current Drupal 6?

#2

Looks fixed. It is easy to check in the aggregator.module file in the release you donwloaded.

#3

Status:active» fixed

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here