Re: [PyQt] sql problems of a n00b

2009-09-03 Thread Volker Helm
If I understand you correctly, you're going to do something like this: try: a=int(self.cautat.text()) print 'a=%i' % a self.query.prepare('select * from pacienti where cnp = ?') self.query.addBindValue(QtCore.QVariant(a)) except: self.query.prepare('select * from pacienti where

Re: [PyQt] Implementing a QSqlDriver in python -> segmentation fault

2009-08-06 Thread Volker Helm
Sorry, I haven't got any knowledge for you. Why don't you use the ODBC-driver which is implemented. On Linux you'll find normally driver for each OS database. Bye, Volker Original-Nachricht > Datum: Tue, 4 Aug 2009 15:15:35 +0200 > Von: Andre Alexander Bell > An: pyqt@riverba

[PyQt] Insertrow with QSqlTableModel doesn't work

2009-05-22 Thread Volker Helm
Hi there, i've got a problem. In my class enderNewIdOrder(QtGui.QDialog) the insertRow doesn't work. I did as in "Rapid GUI Programming with Python and Qt" discribed. But the insert into the Database PostgreSQL over ODBC doesn't work. Regular changes are applied. The application based on QDia