paul-rouse / mysql-simple

A mid-level client library for the MySQL database, intended to be fast and easy to use.
Other
91 stars 35 forks source link

Add fieldName to other errors #19

Closed k-bx closed 7 years ago

k-bx commented 9 years ago

This commit is a continuation of previous work, it also adds fieldName to two more exceptions, so that now, when you have some query involving many fields (lots of them), you have a sense of which field exactly caused an error.

Example of an error with this patch:

MySQLError (UnexpectedNull {errSQLType = "Long", errHaskellType = "Int", errFieldName = "locality_id", errMessage = ""})

It makes life much better to know which field exactly (locality_id) was null.

This patch also has few changes to add more stuff to .gitignore, and also adds stack.yaml for convenience of building project with stack build command for those who use stack.

qrilka commented 8 years ago

@bos are there any problems with this PR which keep it from being merged?

paul-rouse commented 7 years ago

Thanks! Sorry about the delay - I have just taken over as maintainer. This will be released as 0.4 in a few days.

k-bx commented 7 years ago

@paul-rouse great thanks for taking over the maintainment (and to Bryan for giving it away).