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
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
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