mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-12 06:54:28 +01:00
Add sequence name in insertid to be more portable
This commit is contained in:
parent
2af852c57d
commit
05ba42ae8b
@ -96,7 +96,7 @@ class OC_Contacts_Addressbook{
|
|||||||
$stmt = OC_DB::prepare( 'INSERT INTO *PREFIX*contacts_addressbooks (userid,displayname,uri,description,ctag) VALUES(?,?,?,?,?)' );
|
$stmt = OC_DB::prepare( 'INSERT INTO *PREFIX*contacts_addressbooks (userid,displayname,uri,description,ctag) VALUES(?,?,?,?,?)' );
|
||||||
$result = $stmt->execute(array($userid,$name,$uri,$description,1));
|
$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(?,?,?,?,?)' );
|
$stmt = OC_DB::prepare( 'INSERT INTO *PREFIX*contacts_addressbooks (userid,displayname,uri,description,ctag) VALUES(?,?,?,?,?)' );
|
||||||
$result = $stmt->execute(array($userid,$name,$uri,$description,1));
|
$result = $stmt->execute(array($userid,$name,$uri,$description,1));
|
||||||
|
|
||||||
return OC_DB::insertid();
|
return OC_DB::insertid('*PREFIX*contacts_addressbooks');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -121,7 +121,7 @@ class OC_Contacts_VCard{
|
|||||||
|
|
||||||
OC_Contacts_Addressbook::touch($id);
|
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);
|
OC_Contacts_Addressbook::touch($id);
|
||||||
|
|
||||||
return OC_DB::insertid();
|
return OC_DB::insertid('*PREFIX*contacts_cards');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user