[PyKDE] Postgres, Qsqlfield and setNull()

Phil Thompson phil at riverbankcomputing.co.uk
Tue Sep 16 12:42:00 BST 2003


On Tuesday 16 September 2003 11:28 am, César González wrote:
> Hi everybody ;)
>
> 	I am developing an interface for a postgres database with PyQT and i
> having problems setting values to NULL from PyQT :
>
> 	self.dataBrowser1.sqlCursor().editBuffer().field("stock").setNull()
>
> This set field "stock" to zero instead NULL.
>
> Is this a bug in PyQT bindings or should i go to the qt mailing list with
> the question?
>
> I have Debian Sid, postgres 7.3.4, qt 3.2.1 and PyQt 3.8.

It's very unlikely that it's a PyQt problem.

Phil




More information about the PyQt mailing list