aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2016-10-20 09:21:16 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2016-10-20 09:27:14 -0700
commit1345511081a7b4562281cf77d9e5aeeae2d3eb02 (patch)
tree096baa62a2de20d572775128a958da30a6721b55 /activemodel/test/cases
parentb10227728bc9aa21bfebb2e0bbc12f416122d278 (diff)
downloadrails-1345511081a7b4562281cf77d9e5aeeae2d3eb02.tar.gz
rails-1345511081a7b4562281cf77d9e5aeeae2d3eb02.tar.bz2
rails-1345511081a7b4562281cf77d9e5aeeae2d3eb02.zip
Use old typecasting method if no type casted binds are passed in
Query cache doesn't type cast bind parameters since it isn't actually querying the database, so it can't pass those values in. Type casting in the query cache method would cause the values to be type cast twice in the case that there is a cache miss (since the methods it calls will type cast *again*). If logging is disabled, then adding the type cast code to the query cache method will needlessly typecast the values (since the only reason those values are type cast is for display in the logs). Fixes #26828.
Diffstat (limited to 'activemodel/test/cases')
0 files changed, 0 insertions, 0 deletions