HCERR_NULL_SESSION
HCERR_INVALID_SESSION
HCERR_INVALID_OID
HCERR_ILLEGAL_ARGUMENT
Querying MetadataThefollowing functions are dened for simple queries:
■“hc_query_ez”on page 94
■“hc_qrs_next_ez”on page 96
■“hc_qrs_is_query_complete”on page 97
■“hc_qrs_get_query_integrity_time”on page 98
■“hc_qrs_free”on page 99
Thefollowing functions are dened for prepared statement queries:
■“hc_pstmt_create”on page 100
■“hc_pstmt_free”on page 101
■“hc_pstmt_set_string”on page 101
■“hc_pstmt_set_char”on page 102
■“hc_pstmt_set_double”on page 103
■“hc_pstmt_set_long”on page 104
■“hc_pstmt_set_date”on page 105
■“hc_pstmt_set_time”on page 106
■“hc_pstmt_set_timestamp”on page 107
■“hc_pstmt_set_binary”on page 108
■“hc_pstmt_query_ez”on page 109
Preparedstatement example:
“QueryingWith a Prepared Statement” on page 110
hc_query_ezRetrievesOIDs and optionally name-value records matching a query.
Synopsis
hcerr_t hc_query_ez(hc_session_t *session,
hc_string_t query,
hc_string_t selects[],
int n_selects,
SynchronousCAPI Functions
SunStorageTek5800 System Client API Reference Manual • June 200894