[WP3] ValueError: bind position out of range
D.R. Boxhoorn
danny at astro.rug.nl
Tue May 25 10:36:47 CEST 2004
You may encounter the following exception, in particular when you are
using the photometry related classes.
python-2.2/lib/python2.2/site-packages/DCOracle2/DCOracle2.py", line 957, in execute
self._cursor.bindbypos(i, p.value, p.type)
ValueError: bind position out of range
A solution for this problem is to increase an internal limit in DCOracle2.
You have to go to `DCOracle2/src/dco2.c' and raise the `MAX_BIND_COUNT', like
#define MAX_BIND_COUNT 613
Then you have to recompile and install `dco2.so'.
Thanks to Fedor for pointing this out.
The README for installation will be updated accordingly.
Danny
PS. We should consider replacing DCOracle2 by cx_Oracle, but it doesn't support
bind-by-position yet, which is heavily used in the DBOracle python code.
More information about the WP3
mailing list