Ignore:
Timestamp:
Feb 15, 2010, 8:49:04 PM (14 years ago)
Author:
nikrou
Message:

Feature 1255 :
update pwg_db_insert_id() function.
PosgreSQL needs table name to retrieve last insert auto increment id.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r4833 r4892  
    12551255    );
    12561256
    1257   $inserted_id = pwg_db_insert_id();
     1257  $inserted_id = pwg_db_insert_id(CATEGORIES_TABLE);
    12581258
    12591259  $query = '
     
    13881388      );
    13891389
    1390     $page['tag_id_from_tag_name_cache'][$tag_name] = pwg_db_insert_id();
     1390    $page['tag_id_from_tag_name_cache'][$tag_name] = pwg_db_insert_id(TAGS_TABLE);
    13911391  }
    13921392  else
     
    16631663      );
    16641664
    1665     $inserted_id = pwg_db_insert_id();
     1665    $inserted_id = pwg_db_insert_id(TAGS_TABLE);
    16661666
    16671667    return array(
Note: See TracChangeset for help on using the changeset viewer.