C component methods return row results using the routines listed in Chapter 5, “C Routines Reference,” in the EAServer API Reference.
This section describes the two different algorithms for returning results sets from C components:
“Forwarding a result set with JagResultsPassthrough” describes how to forward an ODBC or Client-Library result set to the client. Use this method when you want to send query results as-is.
“Sending results row-by-row” describes the sequence of calls to define a result set’s columns and send the result set row-by-row. Use this method when you must manufacture a result set from scratch. You can also use this method to filter rows or columns from the results of a remote-database query.
You cannot call C routines to send a result set unless
the IDL definition of the component method returns TabularResults::ResultSet or TabularResults::ResultSets.
To return result sets from C++ components:
C++ component methods that return a single result set are defined to return a pointer to a TabularResults::ResultSet structure; use the C routines to return a single result set, as described in “Sending results row-by-row”, then return NULL in place of the structure pointer.
C++ component methods that return multiple result sets must populate an array of TabularResults::ResultSet structures. For more information, see the generated IDL documentation for TabularResults::ResultSet under html/ir/index.html in your EAServer installation.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |