mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Test for SQL presence was backwards.
This commit is contained in:
@@ -528,7 +528,7 @@ bool Transaction::save()
|
||||
|
||||
Database *db = theApp->getTxnDB()->getDB();
|
||||
ScopedLock dbLock = theApp->getTxnDB()->getDBLock();
|
||||
if (!SQL_EXISTS(db, exists)) return false;
|
||||
if (SQL_EXISTS(db, exists)) return false;
|
||||
return
|
||||
db->executeSQL(mTransaction->getSQLInsertHeader() + mTransaction->getSQL(getLedger(), status) + ";");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user