How to process OUTPUT parameters from stored procedures?
Skip Montanaro <[email protected]> Mon, 4 Nov 2013 14:32:05 -0600
| Newsgroups | gmane.comp.python.sybase |
|---|---|
| Message-ID | <CANc-5UxHyjdkKzD7s3WACJJnFMM1NuFP5LYCRrXaD4pp8zNFvg@mail.gmail.com> |
I understand that to allocate space for output parameters of stored
procedures you call the Sybase.OUTPUT() function with an appropriate
type. I can't figure out what to do with the resulting output
parameter dictionary's value. If my input parameters contain such and
OUTPUT() function result:
params = {
...
'@result': Sybase.OUTPUT(1),
...
}
the return value is a dictionary whose "@result" key is an instance of
DataBufType. None of the attributes of that instance seem to suggest
how to extract the actual output value in terms of a usable Python
data type. How do I get that value?
Thx,
Skip Montanaro
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk