- record *rec = new record(0, 0);
- if ((rec->r = ZOOM_record_clone(r)) == 0) {
- // Presumably an out-of-memory error
- throw systemException();
+ record::syntax::operator record::syntax::value() const {
+ return val;
+ }
+
+
+ record::record(resultSet &rs, size_t i): owner(rs) {
+ if ((r = ZOOM_resultset_record(rs._getYazResultSet(), i)) == 0) {
+ const char *errmsg; // unused: carries same info as `errcode'
+ const char *addinfo;
+ int errcode = ZOOM_connection_error(rs._getYazConnection(),
+ &errmsg, &addinfo);
+ throw bib1Exception(errcode, addinfo);