[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra/calligra/2.9] kexi/plugins/queries: Kexi: better check result of parsing
From: Jaroslaw Staniek <staniek () kde ! org>
Date: 2016-02-01 0:31:20
Message-ID: E1aQ2Om-0000WZ-92 () scm ! kde ! org
[Download RAW message or body]
Git commit 17239f5c9c9cb3a7670afbf4de2f7bfb8d27c719 by Jaroslaw Staniek.
Committed on 01/02/2016 at 00:26.
Pushed by staniek into branch 'calligra/2.9'.
Kexi: better check result of parsing
M +4 -2 kexi/plugins/queries/kexiquerypart.cpp
http://commits.kde.org/calligra/17239f5c9c9cb3a7670afbf4de2f7bfb8d27c719
diff --git a/kexi/plugins/queries/kexiquerypart.cpp b/kexi/plugins/queries/kexiquerypart.cpp
index 24d43fd..2fda8f5 100644
--- a/kexi/plugins/queries/kexiquerypart.cpp
+++ b/kexi/plugins/queries/kexiquerypart.cpp
@@ -125,8 +125,10 @@ KexiDB::SchemaData* KexiQueryPart::loadSchemaData(
return 0;
}
KexiDB::Parser *parser = KexiMainWindowIface::global()->project()->sqlParser();
- parser->parse(sqlText);
- KexiDB::QuerySchema *query = parser->query();
+ KexiDB::QuerySchema *query = 0;
+ if (parser->parse(sqlText)) {
+ query = parser->query();
+ }
//error?
if (!query) {
if (viewMode == Kexi::TextViewMode) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic