query.prepare("Update "+dbName+" set guid=:newGuid where guid=:oldGuid");
query.bindValue(":oldGuid", oldGuid);
query.bindValue(":newGuid", newGuid);
if (!query.exec()) {
logger.log(logger.MEDIUM, dbName+" guid update failed.");
logger.log(logger.MEDIUM, query.lastError());
}
// Update any notes containing the notebook guid
query.prepare("Update Note set notebookGuid=:newGuid where notebookGuid=:oldGuid");
query.bindValue(":oldGuid", oldGuid);