aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/inflector_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-03-05 12:30:11 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-03-06 08:47:49 +0900
commit6918c18abcadc008e6bb1205958a6123f389b7ce (patch)
treef107e3091be30e02f89cccfbaf1685af2d12b523 /activesupport/test/inflector_test.rb
parent403c57aec052d60431dbae57eedae471d548dd01 (diff)
downloadrails-6918c18abcadc008e6bb1205958a6123f389b7ce.tar.gz
rails-6918c18abcadc008e6bb1205958a6123f389b7ce.tar.bz2
rails-6918c18abcadc008e6bb1205958a6123f389b7ce.zip
Simply use `select_value` in `show_variable`
`SELECT @@name` statement returns only single row or `StatementInvalid`. ``` root@localhost [activerecord_unittest] > SELECT @@version; +-----------+ | @@version | +-----------+ | 5.7.9-log | +-----------+ 1 row in set (0.00 sec) root@localhost [activerecord_unittest] > SELECT @@unknown_variable; ERROR 1193 (HY000): Unknown system variable 'missing_variable' ```
Diffstat (limited to 'activesupport/test/inflector_test.rb')
0 files changed, 0 insertions, 0 deletions