Fix a bug that can destroy metadata. If we find destroyed

metadata, fix it.
This commit is contained in:
JoelKatz
2013-07-09 09:38:50 -07:00
parent e0e12febce
commit c288c4cd25
8 changed files with 15 additions and 78 deletions

View File

@@ -248,26 +248,6 @@ std::string SerializedTransaction::getMetaSQLValueHeader ()
return "(TransID, TransType, FromAcct, FromSeq, LedgerSeq, Status, RawTxn, TxnMeta)";
}
std::string SerializedTransaction::getSQLInsertHeader ()
{
return "INSERT INTO Transactions " + getSQLValueHeader () + " VALUES ";
}
std::string SerializedTransaction::getSQLInsertIgnoreHeader ()
{
return "INSERT OR IGNORE INTO Transactions " + getSQLValueHeader () + " VALUES ";
}
std::string SerializedTransaction::getSQLInsertReplaceHeader ()
{
return "INSERT OR REPLACE INTO Transactions " + getSQLValueHeader () + " VALUES ";
}
std::string SerializedTransaction::getMetaSQLInsertHeader ()
{
return "INSERT INTO Transactions " + getMetaSQLValueHeader () + " VALUES ";
}
std::string SerializedTransaction::getMetaSQLInsertReplaceHeader ()
{
return "INSERT OR REPLACE INTO Transactions " + getMetaSQLValueHeader () + " VALUES ";