mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Multi-threading patch
This was done by Michael Krause. https://lists.sqlitebrowser.org/pipermail/db4s-dev/2018-February/000305.html In this commit I only fixed two compiler warnings, some whitespace issues and removed some debug messages.
This commit is contained in:
@@ -607,7 +607,8 @@ bool ImportCsvDialog::importCsv(const QString& fileName, const QString& name)
|
||||
sQuery.chop(1); // Remove last comma
|
||||
sQuery.append(")");
|
||||
sqlite3_stmt* stmt;
|
||||
sqlite3_prepare_v2(pdb->_db, sQuery.toUtf8(), sQuery.toUtf8().length(), &stmt, nullptr);
|
||||
auto pDb = pdb->get("importing CSV");
|
||||
sqlite3_prepare_v2(pDb.get(), sQuery.toUtf8(), sQuery.toUtf8().length(), &stmt, nullptr);
|
||||
|
||||
// Parse entire file
|
||||
size_t lastRowNum = 0;
|
||||
|
||||
Reference in New Issue
Block a user