]> source.dussan.org Git - redmine.git/commit
Make sure we don't cast an empty string to numeric (#12713).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 3 Jan 2013 13:33:16 +0000 (13:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 3 Jan 2013 13:33:16 +0000 (13:33 +0000)
commit77f6b404fac599a01511e8d96002af001b0042f5
treedc42a6a4483b03378be52b1354ff9400bda55bf2
parentd82159bcf544bb66e301599ae0cada1ce73f2335
Make sure we don't cast an empty string to numeric (#12713).

SQLServer evaluates the CAST condition even if the <> '' condition is false.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11103 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/models/custom_field.rb
app/models/query.rb
test/unit/query_test.rb