bigpresh / Dancer-Plugin-Database

Dancer::Plugin::Database - easy database support for Dancer applications
http://search.cpan.org/dist/Dancer-Plugin-Database
37 stars 36 forks source link

Fix data handling and SQL building in update queries #63

Closed nunorc closed 9 years ago

nunorc commented 9 years ago

The current version of the code may lead no malformed SQL, because of the sort while building the SQL, the @bind_params list may end up with the values in a different order than the binding names in the SQL. This is a possible fix, it seems to work correctly, feel free to address the problem in a different way.