api | api | |||
---|---|---|---|---|
skipping to change at line 635 | skipping to change at line 635 | |||
* by the SQL2003 standard are subsumed as ODBX_TYPE_UNKNOWN . | * by the SQL2003 standard are subsumed as ODBX_TYPE_UNKNOWN . | |||
* | * | |||
* @param pos Position of column in result set | * @param pos Position of column in result set | |||
* @return Column type | * @return Column type | |||
* @throws OpenDBX::Exception If the underlying database lib rary returns an error | * @throws OpenDBX::Exception If the underlying database lib rary returns an error | |||
* @see odbxtype | * @see odbxtype | |||
*/ | */ | |||
odbxtype columnType( unsigned long pos ) throw( std::excepti on ); | odbxtype columnType( unsigned long pos ) throw( std::excepti on ); | |||
/** | /** | |||
* Returns an indicator if the field in the current row at t | ||||
he specified postion contains a NULL value. | ||||
* | ||||
* The field is part of the current row which was retrieved | ||||
by the | ||||
* latest call to getRow() and is specified by the column in | ||||
dex given by | ||||
* \a pos. | ||||
* | ||||
* @param pos Position of column in result set | ||||
* @return True if the field contains a NULL value, false if | ||||
not | ||||
* @throws OpenDBX::Exception If the underlying database lib | ||||
rary returns an error | ||||
*/ | ||||
bool fieldIsNull( unsigned long pos ) throw( std::exception | ||||
); | ||||
/** | ||||
* Returns the size of the content in the current row at the specified postion. | * Returns the size of the content in the current row at the specified postion. | |||
* | * | |||
* The field is part of the current row which was retrieved by the | * The field is part of the current row which was retrieved by the | |||
* latest call to getRow() and is specified by the column in dex given by | * latest call to getRow() and is specified by the column in dex given by | |||
* \a pos. | * \a pos. | |||
* | * | |||
* @param pos Position of column in result set | * @param pos Position of column in result set | |||
* @return Size of the data in bytes | * @return Size of the data in bytes | |||
* @throws OpenDBX::Exception If the underlying database lib rary returns an error | * @throws OpenDBX::Exception If the underlying database lib rary returns an error | |||
*/ | */ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 19 lines changed or added | |||
api.h | api.h | |||
---|---|---|---|---|
skipping to change at line 84 | skipping to change at line 84 | |||
ODBX_ERR_OPTION, | ODBX_ERR_OPTION, | |||
#define ODBX_ERR_OPTION ODBX_ERR_OPTION | #define ODBX_ERR_OPTION ODBX_ERR_OPTION | |||
ODBX_ERR_OPTRO, | ODBX_ERR_OPTRO, | |||
#define ODBX_ERR_OPTRO ODBX_ERR_OPTRO | #define ODBX_ERR_OPTRO ODBX_ERR_OPTRO | |||
ODBX_ERR_OPTWR, | ODBX_ERR_OPTWR, | |||
#define ODBX_ERR_OPTWR ODBX_ERR_OPTWR | #define ODBX_ERR_OPTWR ODBX_ERR_OPTWR | |||
ODBX_ERR_RESULT, | ODBX_ERR_RESULT, | |||
#define ODBX_ERR_RESULT ODBX_ERR_RESULT | #define ODBX_ERR_RESULT ODBX_ERR_RESULT | |||
ODBX_ERR_NOTSUP, | ODBX_ERR_NOTSUP, | |||
#define ODBX_ERR_NOTSUP ODBX_ERR_NOTSUP | #define ODBX_ERR_NOTSUP ODBX_ERR_NOTSUP | |||
ODBX_ERR_HANDLE | ODBX_ERR_HANDLE, | |||
#define ODBX_ERR_HANDLE ODBX_ERR_HANDLE | #define ODBX_ERR_HANDLE ODBX_ERR_HANDLE | |||
ODBX_ERR_BUSY | ||||
#define ODBX_ERR_BUSY ODBX_ERR_BUSY | ||||
}; | }; | |||
#define ODBX_MAX_ERRNO 0x0d | #define ODBX_MAX_ERRNO 0x0e | |||
/* | /* | |||
* ODBX result/fetch return values | * ODBX result/fetch return values | |||
*/ | */ | |||
enum odbxres { | enum odbxres { | |||
ODBX_RES_DONE, | ODBX_RES_DONE, | |||
#define ODBX_RES_DONE ODBX_RES_DONE | #define ODBX_RES_DONE ODBX_RES_DONE | |||
ODBX_RES_TIMEOUT, | ODBX_RES_TIMEOUT, | |||
#define ODBX_RES_TIMEOUT ODBX_RES_TIMEOUT | #define ODBX_RES_TIMEOUT ODBX_RES_TIMEOUT | |||
skipping to change at line 271 | skipping to change at line 273 | |||
int odbx_row_fetch( odbx_result_t* result ); | int odbx_row_fetch( odbx_result_t* result ); | |||
uint64_t odbx_rows_affected( odbx_result_t* result ); | uint64_t odbx_rows_affected( odbx_result_t* result ); | |||
unsigned long odbx_column_count( odbx_result_t* result ); | unsigned long odbx_column_count( odbx_result_t* result ); | |||
const char* odbx_column_name( odbx_result_t* result, unsigned long pos ); | const char* odbx_column_name( odbx_result_t* result, unsigned long pos ); | |||
int odbx_column_type( odbx_result_t* result, unsigned long pos ); | int odbx_column_type( odbx_result_t* result, unsigned long pos ); | |||
int odbx_field_isnull( odbx_result_t* result, unsigned long pos ); | ||||
unsigned long odbx_field_length( odbx_result_t* result, unsigned long pos ) ; | unsigned long odbx_field_length( odbx_result_t* result, unsigned long pos ) ; | |||
const char* odbx_field_value( odbx_result_t* result, unsigned long pos ); | const char* odbx_field_value( odbx_result_t* result, unsigned long pos ); | |||
/* | /* | |||
* ODBX large object operations | * ODBX large object operations | |||
*/ | */ | |||
int odbx_lo_open( odbx_result_t* result, odbx_lo_t** lo, const char* value ); | int odbx_lo_open( odbx_result_t* result, odbx_lo_t** lo, const char* value ); | |||
End of changes. 4 change blocks. | ||||
2 lines changed or deleted | 6 lines changed or added | |||