class ActiveRecord::ConnectionAdapters::Mysql2Adapter::BindParameterTest
Public Instance Methods
test_create_null_bytes()
click to toggle source
# File activerecord/test/cases/adapters/mysql2/bind_parameter_test.rb, line 42 def test_create_null_bytes str = "foo\0bar" x = Topic.create!(title: str, content: str) x.reload assert_equal str, x.title assert_equal str, x.content end
test_create_question_marks()
click to toggle source
# File activerecord/test/cases/adapters/mysql2/bind_parameter_test.rb, line 23 def test_create_question_marks str = "foo?bar" x = Topic.create!(title: str, content: str) x.reload assert_equal str, x.title assert_equal str, x.content end
test_update_null_bytes()
click to toggle source
# File activerecord/test/cases/adapters/mysql2/bind_parameter_test.rb, line 31 def test_update_null_bytes str = "foo\0bar" x = Topic.first x.title = str x.content = str x.save! x.reload assert_equal str, x.title assert_equal str, x.content end
test_update_question_marks()
click to toggle source
# File activerecord/test/cases/adapters/mysql2/bind_parameter_test.rb, line 12 def test_update_question_marks str = "foo?bar" x = Topic.first x.title = str x.content = str x.save! x.reload assert_equal str, x.title assert_equal str, x.content end