Skip to content

Commit e14a669

Browse files
committed
Renamed error code method
1 parent 10f513c commit e14a669

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/postgresql.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ object
626626

627627
method error_field field_name = Stub.result_error_field res field_name
628628

629-
method sqlstate_error_code =
629+
method error_code =
630630
Error_code.of_sqlstate (Stub.result_error_field res Error_field.SQLSTATE)
631631

632632
method ntuples = ntuples

src/postgresql.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ class type result = object
226226
method error_field : Error_field.t -> string
227227
(** [#error_field] @return message of given error field in a result. *)
228228

229-
method sqlstate_error_code : Error_code.t
230-
(** [#sqlstate_error_code] @return the error code of the error condition
229+
method error_code : Error_code.t
230+
(** [#error_code] @return the error code of the error condition
231231
as stored in the SQLSTATE field. *)
232232

233233
(** Retrieving SELECT Result Information *)

0 commit comments

Comments
 (0)