Feature 1255 :
update pwg_db_insert_id() function. PosgreSQL needs table name to retrieve last insert auto increment id. git-svn-id: http://piwigo.org/svn/trunk@4892 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
78b517bde6
commit
c1d6177df9
10 changed files with 20 additions and 14 deletions
|
|
@ -1254,7 +1254,7 @@ SELECT id, uppercats, global_rank, visible, status
|
|||
array($insert)
|
||||
);
|
||||
|
||||
$inserted_id = pwg_db_insert_id();
|
||||
$inserted_id = pwg_db_insert_id(CATEGORIES_TABLE);
|
||||
|
||||
$query = '
|
||||
UPDATE
|
||||
|
|
@ -1387,7 +1387,7 @@ SELECT id
|
|||
)
|
||||
);
|
||||
|
||||
$page['tag_id_from_tag_name_cache'][$tag_name] = pwg_db_insert_id();
|
||||
$page['tag_id_from_tag_name_cache'][$tag_name] = pwg_db_insert_id(TAGS_TABLE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1662,7 +1662,7 @@ SELECT id
|
|||
)
|
||||
);
|
||||
|
||||
$inserted_id = pwg_db_insert_id();
|
||||
$inserted_id = pwg_db_insert_id(TAGS_TABLE);
|
||||
|
||||
return array(
|
||||
'info' => sprintf(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue