Added special handling for latest term_id insertion retrieval
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418060 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
@@ -368,8 +368,8 @@
|
||||
if( in_array( $t, array( '_seq', $table_prefix.'term_relationships_seq')))
|
||||
return 0;
|
||||
|
||||
if( $ins_field == '"cat_ID"' || $ins_field == 'rel_id')
|
||||
$sql = "SELECT MAX($ins_field) FROM $ins_table";
|
||||
if( $ins_field == '"cat_ID"' || $ins_field == 'rel_id' || $ins_field == 'term_id')
|
||||
$sql = "SELECT MAX($ins_field) FROM ".$tbls[0];
|
||||
else
|
||||
$sql = "SELECT CURRVAL('$t')";
|
||||
|
||||
|
Reference in New Issue
Block a user