|
|
@ -24,6 +24,7 @@
|
|
|
|
# Toby Elliott (telliott@mozilla.com)
|
|
|
|
# Toby Elliott (telliott@mozilla.com)
|
|
|
|
# balu
|
|
|
|
# balu
|
|
|
|
# Daniel Triendl <daniel@pew.cc>
|
|
|
|
# Daniel Triendl <daniel@pew.cc>
|
|
|
|
|
|
|
|
# Moonchild <moonchild@palemoon.org>
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
@ -219,6 +220,8 @@ class WeaveStorage
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if ( MYSQL_ENABLE )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$insert_stmt = 'insert into wbo (username, id, collection, parentid, predecessorid, sortindex, modified, payload, payload_size)
|
|
|
|
$insert_stmt = 'insert into wbo (username, id, collection, parentid, predecessorid, sortindex, modified, payload, payload_size)
|
|
|
|
values (:username, :id, :collection, :parentid, :predecessorid, :sortindex, :modified, :payload, :payload_size)
|
|
|
|
values (:username, :id, :collection, :parentid, :predecessorid, :sortindex, :modified, :payload, :payload_size)
|
|
|
@ -226,6 +229,13 @@ class WeaveStorage
|
|
|
|
username=values(username), id=values(id), collection=values(collection), parentid=values(parentid),
|
|
|
|
username=values(username), id=values(id), collection=values(collection), parentid=values(parentid),
|
|
|
|
predecessorid=values(predecessorid), sortindex=values(sortindex), modified=values(modified), payload=values(payload),
|
|
|
|
predecessorid=values(predecessorid), sortindex=values(sortindex), modified=values(modified), payload=values(payload),
|
|
|
|
payload_size=values(payload_size)';
|
|
|
|
payload_size=values(payload_size)';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$insert_stmt = 'replace into wbo (username, id, collection, parentid, predecessorid, sortindex, modified, payload, payload_size)
|
|
|
|
|
|
|
|
values (:username, :id, :collection, :parentid, :predecessorid, :sortindex, :modified, :payload, :payload_size)';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$sth = $this->_dbh->prepare($insert_stmt);
|
|
|
|
$sth = $this->_dbh->prepare($insert_stmt);
|
|
|
|
|
|
|
|
|
|
|
|
$username = $this->_username;
|
|
|
|
$username = $this->_username;
|
|
|
|