1. Dmitry Grebeniuk
  2. amall

Commits

Dmitry Grebeniuk  committed 39c3924

amall.dbi: result_data#downcast

  • Participants
  • Parent commits ededd98
  • Branches default

Comments (0)

Files changed (1)

File src/dbi/dbi_pg.ml

View file
  • Ignore whitespace
 ;
 
 
+exception Pg_result_data of P.result
+;
+
+
 class result_data
   (presult : P.result) =
   let names_lazy = lazy presult#get_fnames in
     inherit Dbi.result ['v];
 *)
 
+    method downcast : unit = raise (Pg_result_data presult);
+
     value mutable v_current_nrow = 0;
 
     method nrows = some_nrows;