RJMetrics / sweet-liberty

A library for building database-backed RESTful services using Clojure
Apache License 2.0
104 stars 6 forks source link

adding debug logging before the actual insert is executed #3

Open ryanmmmmm opened 9 years ago

ryanmmmmm commented 9 years ago

Fix: https://github.com/RJMetrics/sweet-liberty/issues/2 Signed-off-by: Ryan Medlin ryan.w.medlin@gmail.com

karstendick commented 9 years ago

Thanks for the PR, @ryanmedlin.

I'll work on tidying this up a bit and adding unit tests in https://github.com/RJMetrics/sweet-liberty/tree/pr/3-ryanmedlin

karstendick commented 9 years ago

@ryanmedlin Could you give an example of when (ffirst result) would be nil?

ryanmmmmm commented 9 years ago

should i close this pull request until i have the time to do a proper pull request with tests, etc.... its sortof in a weird shape and obviously not clear as to the intention of these different commits either.

For the (ffirst result) this is when you do an insert and there is not autogenerated primary key the jdbc driver will not return anything getGeneratedKey() is called.

some of our tables use a UUID that is not generated on the database.