/** Release all database resources. OK to call more than once. */
 @Override
 public void close() {
   super.close();
   value = null;
   if (result_set != null) {
     try {
       result_set.close();
     } catch (Exception ex) {
       // Ignore
     }
     result_set = null;
   }
   if (sel_samples != null) {
     reader.removeFromCancellation(sel_samples);
     try {
       sel_samples.close();
     } catch (Exception ex) {
       // Ignore
     }
     sel_samples = null;
   }
   if (reader.getDialect() == Dialect.PostgreSQL) {
     // Restore default auto-commit on result set close
     try {
       reader.getConnection().setAutoCommit(true);
     } catch (Exception e) {
       // Ignore
     }
   }
 }
 /** Release all database resources. OK to call more than once. */
 @Override
 public void close() {
   super.close();
   value = null;
   if (result_set != null) {
     try {
       result_set.close();
     } catch (Exception ex) {
       // Ignore
     }
     result_set = null;
   }
   if (sel_samples != null) {
     reader.removeFromCancellation(sel_samples);
     try {
       sel_samples.close();
     } catch (Exception ex) {
       // Ignore
     }
     sel_samples = null;
   }
 }