Re: [cx-oracle-users] setinputsizes problem?
Brought to you by:
atuining
From: Amaury F. d'A. <ama...@gm...> - 2010-07-03 21:11:38
|
2010/7/3 Jason Boorn <jb...@gm...>: > Thank you, but I'm using python - could you tell me what kind of a structure > the argument should be? And how to populate it? > > My original function call was called with an array argument, an array > containing all of the fields being inserted. In the docs: http://cx-oracle.sourceforge.net/html/cursor.html#Cursor.setinputsizes you should not call setinputsizes() with one argument, but with one argument per variable. since you already have a list containing the various sizes, cursor.setinputsizes(*inputsizes) (note the * symbol) will "explode" the list and pass each list items as separate arguments to the function. -- Amaury Forgeot d'Arc |