1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Add sequence name in insertid to be more portable

This commit is contained in:
Brice Maron 2011-10-29 11:40:48 +02:00
parent 2af852c57d
commit 05ba42ae8b
2 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ class OC_Contacts_Addressbook{
$stmt = OC_DB::prepare( 'INSERT INTO *PREFIX*contacts_addressbooks (userid,displayname,uri,description,ctag) VALUES(?,?,?,?,?)' );
$result = $stmt->execute(array($userid,$name,$uri,$description,1));
return OC_DB::insertid();
return OC_DB::insertid('*PREFIX*contacts_addressbooks');
}
/**
@ -113,7 +113,7 @@ class OC_Contacts_Addressbook{
$stmt = OC_DB::prepare( 'INSERT INTO *PREFIX*contacts_addressbooks (userid,displayname,uri,description,ctag) VALUES(?,?,?,?,?)' );
$result = $stmt->execute(array($userid,$name,$uri,$description,1));
return OC_DB::insertid();
return OC_DB::insertid('*PREFIX*contacts_addressbooks');
}
/**

View File

@ -121,7 +121,7 @@ class OC_Contacts_VCard{
OC_Contacts_Addressbook::touch($id);
return OC_DB::insertid();
return OC_DB::insertid('*PREFIX*contacts_cards');
}
/**
@ -147,7 +147,7 @@ class OC_Contacts_VCard{
OC_Contacts_Addressbook::touch($id);
return OC_DB::insertid();
return OC_DB::insertid('*PREFIX*contacts_cards');
}
/**