support for SQLNumResultCols and SQLDescribeCol

This commit is contained in:
eknauel 2002-05-21 13:48:47 +00:00
parent f70889ccc8
commit 6dd03e81a2
1 changed files with 14 additions and 1 deletions

View File

@ -12,6 +12,7 @@
#define ODBC_GET_CONNECT_ATTR_MAX_LEN 255
#define ODBC_GET_STMT_ATTR_MAX_LEN 255
#define ODBC_GET_DATA_MAX_STR_LEN 255
#define ODBC_DESCRIBE_COL_MAX_STR_LEN 255
#define ODBC_DEBUG_MSGS 1
@ -66,6 +67,15 @@ static s48_value sql_timestamp_record_type = S48_FALSE;
#define SR_SQL_NUMERIC_SIGN 2
#define SR_SQL_NUMERIC_VALUE 3
/* corresponds to odbc-column */
static s48_value odbc_column_record_type = S48_FALSE;
#define SR_ODBC_COLUMN_NAME 0
#define SR_ODBC_COLUMN_TYPE 1
#define SR_ODBC_COLUMN_SIZE 2
#define SR_ODBC_COLUMN_DIGITS 3
#define SR_ODBC_COLUMN_NULLABLE 4
/*
*
* PART 1
@ -104,7 +114,7 @@ s48_value odbc_sql_connect(s48_value connection_handle,
*/
/* Returns a list of available data sources. */
s48_value odbc_sql_data_sources(s48_value env_handle, s48_value direction);
s48_value odbc_sql_data_sources(s48_value env_handle);
/* Returns the list of installed drivers and their attributes. */
s48_value odbc_sql_drivers(s48_value env_handle);
@ -217,6 +227,9 @@ void check_sql_get_data_result(SQLRETURN retval, SQLHSTMT stmt_handle);
s48_value odbc_sql_fetch(s48_value stmt_handle);
s48_value odbc_sql_num_result_cols(s48_value stmt_handle);
s48_value odbc_sql_describe_col(s48_value stmt_handle, s48_value column_number);
/*
*