srushti / goldberg

Goldberg is a lightweight CI server written in Ruby which worries about Bundler & RVM so that you don't have to.
Other
242 stars 29 forks source link

Fix to make the query working on all databases #121

Closed libin closed 12 years ago

libin commented 12 years ago

Original Query:

where("build_requested = 't' or next_build_at is null or next_build_at <= :next_build_at", :next_build_at => Time.now)

New Query:

where("build_requested = ? or next_build_at is null or next_build_at <= ?", true, Time.now)

That's it. Thanks!

srushti commented 12 years ago

Sorry it took so long! I've merged it in now as 7bf4cc9937598337e44361ccd9463e363cdcfa88. Thanks for the pull request.