![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, In the IBM sample file (see /opt/IBM/db2/V8.1/samples/cpp), spserver.sqC, it implemented a routine called two_result_sets(...). In spclient.sqC, callTwoResultSets(...) is supposed to show how to call two_result_sets() and how to use the returned record sets, but it is not implemented. In other words, in the spserver.sqC code, it commented: '// Leave cursors open to return result sets', but there is no further example on how to use these two cursors from the client application. The same goes for one_result_set_to_client(...) (in spserver.sqC) and callOneResultSet(...) (in spclient.sqC). Can anyone tell me how to use the record sets that are returned from spserver.sqC? To be more specific, how do I define these two cursors in a client app? Thanks. |
#3
| |||
| |||
|
|
You cannot process the result set from an embedded app...look at: cli/spclient.c or java/jdbc/SpClient.java For how to use them from cli or jdbc apps. |
#4
| |||
| |||
|
|
You could return a linked list of data packed into a blob etc, but then you'd have to deal with issues like byte reversal/codepage conversion etc that a cursor would handle for you... There's nothing technical stopping us from supporting mrsps from embedded clients in v8; just need to write some test buckets...we need to see enough interest from customers for this to happen though. :-) If you have any way of pushing this requirement through our normal channels that'd be great; in the meantime I'll add 'forum users' to the list of customers I have who want this function. ;-) |
![]() |
| Thread Tools | |
| Display Modes | |
| |