findmypast-oss / mssql_ecto

Ecto adapter for Mssqlex
Apache License 2.0
49 stars 20 forks source link

Corrected error codes expected from Mssqlex for storage up and down #10

Closed jbachhardie closed 7 years ago

jbachhardie commented 7 years ago

Description

Made the adapter translate the error codes from Mssqlex so that tools like mix ecto.create can tell when a command failed due to the database already being up and not error.

Motivation and Context

Should close https://github.com/findmypast-oss/mssql_ecto/issues/8

How Has This Been Tested?

All tests passing. Manually tested with a new test phoenix project as described in https://github.com/findmypast-oss/mssql_ecto/issues/8

Types of changes

Checklist: