Loading editor/src/webedit_db.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -275,7 +275,7 @@ std::string webedit::Database::updateDocument(const std::string &ownerUid, << "', modified=CURRENT_TIMESTAMP WHERE id='" << dbpp::SQL::escaped(escapedId, id.c_str()) << "' AND owner_uid='" << dbpp::SQL::escaped(escapedUid, ownerUid.c_str()) << "';" << dbpp::SQL::escaped(escapedUid, ownerUid.c_str()) << "';"; _db->exec(sql, res); Loading Loading @@ -385,7 +385,7 @@ std::string webedit::Database::listDocuments(const std::string &domain) { sql << "SELECT id, name, created, modified, group_name FROM documents WHERE domain='" << dbpp::SQL::escaped(escapedDomain, domain.c_str()) << "' ORDER BY group_name, name, modified DESC;" << "' ORDER BY group_name, name, modified DESC;"; int rows = _db->exec(sql, res); Loading Loading
editor/src/webedit_db.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -275,7 +275,7 @@ std::string webedit::Database::updateDocument(const std::string &ownerUid, << "', modified=CURRENT_TIMESTAMP WHERE id='" << dbpp::SQL::escaped(escapedId, id.c_str()) << "' AND owner_uid='" << dbpp::SQL::escaped(escapedUid, ownerUid.c_str()) << "';" << dbpp::SQL::escaped(escapedUid, ownerUid.c_str()) << "';"; _db->exec(sql, res); Loading Loading @@ -385,7 +385,7 @@ std::string webedit::Database::listDocuments(const std::string &domain) { sql << "SELECT id, name, created, modified, group_name FROM documents WHERE domain='" << dbpp::SQL::escaped(escapedDomain, domain.c_str()) << "' ORDER BY group_name, name, modified DESC;" << "' ORDER BY group_name, name, modified DESC;"; int rows = _db->exec(sql, res); Loading