Facilitates the return of result sets to the calling SQL environment.
typedef struct an_extfn_result_set_info { a_sql_uint32 number_of_columns; an_extfn_result_set_column_info *column_infos; an_extfn_result_set_column_data *column_data_values; } an_extfn_result_set_info; |
number_of_columns The number of columns in the result set.
column_infos Link to a description of the result set columns. See an_extfn_result_set_column_info structure.
column_data_values Link to a description of the result set column data. See an_extfn_result_set_column_data structure.
The following code fragment shows how to set the properties for objects of this type.
int columns = 2; an_extfn_result_set_info rs_info; an_extfn_result_set_column_info *col_info = (an_extfn_result_set_column_info *) malloc( columns * sizeof(an_extfn_result_set_column_info) ); an_extfn_result_set_column_data *col_data = (an_extfn_result_set_column_data *) malloc( columns * sizeof(an_extfn_result_set_column_data) ); rs_info.number_of_columns = columns; rs_info.column_infos = col_info; rs_info.column_data_values = col_data; |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |