[PyKDE] QSqlCursor problems

Jon jjshome at ntlworld.com
Fri Feb 8 10:00:38 GMT 2002


On Tuesday 05 February 2002 9:02 am, Phil Thompson wrote:
> Jon wrote:
> > Hello
> >
> > I am getting the same problem as reported by Nico van der Walt on Tue, 18
> > Dec 2001.
> >
> > QSqlCursor returns blank for text fields and zero for numeric fields. I
> > am using the MySql driver.
> >
> > Does anyone know if this problem has been resolved yet ?
> >
> > Jon
>
> I've not tested it recently (since I downgraded my g++), but I assume
> the problem is still there. I got as far as finding that the problem was
> from a QVariant ctor being used to copy the column value - but there I
> got stuck. What compiler are you using?
>
> Phil
>
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.gmd.de
> http://mats.gmd.de/mailman/listinfo/pykde

In fact I had fixed the bug. I just had not rebuilt PyQt properly.

So to recap:

QSqlCursor calls QSqlQuery::afterSeek() instead of  QSqlCursor::afterSeek() 
giving a cursor full of zeros. This is fixed by uncommenting void 
afterSeek(); in qsqlcursor.sip and doing a complete rebuild.

Another small problem I found is that 'make rebuild-src' is broken in 
PyQt-3.0.

Jon.




More information about the PyQt mailing list