erlangbureau / jamdb_oracle

Oracle Database driver for Erlang
MIT License
106 stars 48 forks source link

Translate error codes #125

Closed isaacsanders closed 2 years ago

isaacsanders commented 2 years ago

It would be better to process the error code on https://github.com/erlangbureau/jamdb_oracle/blob/master/lib/jamdb_oracle.ex#L50 using some form of the list at http://www.dba-oracle.com/t_error_code_list.htm or some other place that included better error codes.

isaacsanders commented 2 years ago
** (exit) an exception was raised:
    ** (DBConnection.ConnectionError) []
        (ecto_sql 3.9.0) lib/ecto/adapters/sql.ex:905: Ecto.Adapters.SQL.raise_sql_call_error/1
        (ecto_sql 3.9.0) lib/ecto/adapters/sql.ex:820: Ecto.Adapters.SQL.execute/6
        (ecto 3.9.1) lib/ecto/repo/queryable.ex:229: Ecto.Repo.Queryable.execute/4
        (ecto 3.9.1) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3

Without the translation, I would get an error like this.

vstavskyi commented 2 years ago

Please try stage branch commit