aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-06-01 10:32:11 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-06-01 10:36:14 +0900
commit3c3ff9c76a2ddef5bf52c25cd75cb4f909dc58bd (patch)
treeceb062081e7bf5f9ebe5e59ee6ca8dea2841c7df /activerecord/test/cases
parent908b136cf27aeb38b06dc98e7d2215d852ffc962 (diff)
downloadrails-3c3ff9c76a2ddef5bf52c25cd75cb4f909dc58bd.tar.gz
rails-3c3ff9c76a2ddef5bf52c25cd75cb4f909dc58bd.tar.bz2
rails-3c3ff9c76a2ddef5bf52c25cd75cb4f909dc58bd.zip
Should use `quote` for a string literal
Follow up of #29077. Before: ```sql SELECT sql FROM sqlite_master WHERE tbl_name NOT IN ("foo") ORDER BY tbl_name, type DESC, name ``` After: ```sql SELECT sql FROM sqlite_master WHERE tbl_name NOT IN ('foo') ORDER BY tbl_name, type DESC, name ``` > If a keyword in double quotes (ex: "key" or "glob") is used in a context where it cannot be resolved to an identifier but where a string literal is allowed, then the token is understood to be a string literal instead of an identifier. http://www.sqlite.org/lang_keywords.html
Diffstat (limited to 'activerecord/test/cases')
0 files changed, 0 insertions, 0 deletions