[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi/plugins/queries
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2004-08-25 19:49:51
Message-ID: 20040825194951.7252023DB () office ! kde ! org
[Download RAW message or body]

CVS commit by staniek: 

Query designer
- more verbose errors


  M +1 -1      kexiquerydesignerguieditor.cpp   1.83
  M +3 -2      kexiqueryview.cpp   1.12
  M +2 -1      kexiqueryview.h   1.5


--- koffice/kexi/plugins/queries/kexiquerydesignerguieditor.cpp  #1.82:1.83
@@ -437,5 +437,5 @@ KexiQueryDesignerGuiEditor::afterSwitchF
                         if (!loadLayout()) {
                                 //err msg
-                                parentDialog()->setStatus(i18n("Query definition \
loading failed."), i18n("Query data may be corrupted.")); +                           \
parentDialog()->setStatus(parentDialog()->mainWin()->project()->dbConnection(), \
i18n("Query definition loading failed."), i18n("Query data may be corrupted."));  \
return false;  }

--- koffice/kexi/plugins/queries/kexiqueryview.cpp  #1.11:1.12
@@ -1,4 +1,5 @@
 /* This file is part of the KDE project
    Copyright (C) 2004   Lucijan Busch <lucijan@kde.org>
+   Copyright (C) 2004 Jaroslaw Staniek <js@iidea.pl>
 
    This program is free software; you can redistribute it and/or
@@ -43,5 +44,5 @@ bool KexiQueryView::executeQuery(KexiDB:
         KexiDB::Cursor *rec = \
mainWin()->project()->dbConnection()->executeQuery(*query);  if (!rec) {
-                parentDialog()->setStatus(i18n("Query executing failed."), \
parentDialog()->mainWin()->project()->dbConnection()->errorMsg()); +                \
parentDialog()->setStatus(parentDialog()->mainWin()->project()->dbConnection(), \
i18n("Query executing failed."));  //todo: also provide server result and sql \
statement  return false;

--- koffice/kexi/plugins/queries/kexiqueryview.h  #1.4:1.5
@@ -1,4 +1,5 @@
 /* This file is part of the KDE project
    Copyright (C) 2004   Lucijan Busch <lucijan@kde.org>
+   Copyright (C) 2004 Jaroslaw Staniek <js@iidea.pl>
 
    This program is free software; you can redistribute it and/or


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic