jnraine / munkiserver

Visit https://github.com/munkiserver/munkiserver for active development — this repository is no longer maintained
85 stars 27 forks source link

Adds /pkgs/:id integer cast for sqlserver adapter #129

Closed joraff closed 12 years ago

joraff commented 12 years ago

Whereas most other adapters will correctly convert a package "id" from a string to an integer (dropping the -pkgname suffix), the sqlserver adapter (or likely tinytds) does not. Adding .to_i should add this compatibility without breaking anyone else's.

jnraine commented 12 years ago

Thanks for the commits @joraff!