Comment 0 for bug 143805

Revision history for this message
Dirk Datzert (dirk.datzert) wrote :

Uploaded: Zope-2.8.6-cached-result.patch

Hi,

I work with cached results in ZSQL-Methods and got a KeyError for _cached_result:

  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 325, in _exec
  Module None, line 38, in draw_line
   - <PythonScript at /webgraf/Typ2/draw_line>
   - Line 38
  Module Shared.DC.ZRDB.DA, line 453, in __call__
   - <SQL at /webgraf/sql_get_data used for /webgraf/Typ2>
  Module Shared.DC.ZRDB.DA, line 375, in _cached_result
  KeyError: ("select * from DBA.DATA\nwhere ID='KCB00XXX'\n
    and AUSBLENDEN=false\norder by X_SORT", 1000, '\nDBConnId: None')

I did found the real bug, but have a workaround attached.

Regards,
Dirk