Hi,
I finally found the time to dig the issue, and write a patch, attached
to this mail.
I built myself a new package by putting this patch in debian/patches/,
adding it at the end of debian/patches/series, then "dpkg-buildpackage
-b -us -uc".
May I kindly ask a new package including this patch and closing this bug?
Thanks,
Snark on #debian-science
Description: Don't go in an infinite loop on error
In the currnent code, when doing a query, there is an infinite loop if
there is an error.
Author: Julien Puydt <julien.pu...@laposte.net>
Forwarded: no
--- sqlitebrowser-2.0.0~beta1+ds.1.orig/form1.cpp
+++ sqlitebrowser-2.0.0~beta1+ds.1/form1.cpp
@@ -877,8 +877,11 @@ void mainForm::executeQuery()
}
}
sqlite3_finalize(vm);
+ queryErrorLineEdit->setText(lastErrorMessage);
}else{
lastErrorMessage = QString (sqlite3_errmsg(db._db));
+ queryErrorLineEdit->setText(lastErrorMessage);
+ break;
}
queryErrorLineEdit->setText(lastErrorMessage);
queryResultListView->setResizeMode(Q3ListView::AllColumns);