web2py/web2py — pull request #33 by dhx (2012-09-18 08:58:26+00:00)
Title: do the read of the CLOBs in the fetch

Using the fetchall method with cx_oracle invalidates the CLOB objects resulting in a “LOB variable no longer valid after subsequent fetch” error. See also:

http://cx-oracle.sourceforge.net/html/lob.html

The patch works around this problem by iterating over the cursor if there is a CLOB column in the result set.

This also makes the oracle specific parse_value function obsolete as the clobs are read already.