- When a query fails, shows the message of the exception

- Improved tokenizer for select in optimizations, now can accept operators in identifiers


git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@220 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf
2010-03-19 16:06:02 +00:00
parent 6adcd221bd
commit 2c4757dafb
3 changed files with 20 additions and 33 deletions

View File

@@ -84,8 +84,8 @@ class Ui_Form(object):
self.updateRelations() #update the list
self.selectedRelation=result
self.showRelation(self.selectedRelation) #Show the result in the table
except:
QtGui.QMessageBox.information(None,QtGui.QApplication.translate("Form", "Error"),QtGui.QApplication.translate("Form", "Check your query!") )
except Exception, e:
QtGui.QMessageBox.information(None,QtGui.QApplication.translate("Form", "Error"),"%s\n%s" % (QtGui.QApplication.translate("Form", "Check your query!"),e.message) )
def showRelation(self,rel):
'''Shows the selected relation into the table'''
self.table.clear()