Share

SednaPy

Tracker: Bugs

5 fetchone() hangs - ID: 1767364
Last Update: Settings changed ( gervin23 )

Hello,

First, thanks for a much needed hook into Sedna!

While testing out SednaPy, I noticed the program would hang when sending
invalid XQuery's (ones with no result set).

I think I found where things are going wrong. The function fetchone(), in
the first condition, is trying to fetch the next row (self._getItem())
instead of returning nothing (None).

The only problem with this fix is you can't just throw the resultset into
etree because etree expects type Element. You must check the result before
continuing.

Thanks!


Andrew Gale ( gervin23 ) - 2007-08-03 22:55

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
adapter.py.patch patchfile Download

Changes ( 2 )

Field Old Value Date By
summary fetchone() iterator hangs 2007-08-03 22:55 gervin23
File Added 239814: adapter.py.patch 2007-08-03 22:55 gervin23