Sha256: 991d079d4fb3498a0d334c9cee29ae77ea6ede00a8c3517d64e92bd551a2f23a
Contents?: true
Size: 623 Bytes
Versions: 6
Compression:
Stored size: 623 Bytes
Contents
require 'helper' module SQLite3 class TestDeprecated < Test::Unit::TestCase def setup @db = SQLite3::Database.new(':memory:') end def test_query_with_many_bind_params assert_equal [[nil, 1]], @db.query("select ?, ?", nil, 1).to_a end def test_query_with_nil_bind_params assert_equal [['foo']], @db.query("select 'foo'", nil).to_a end def test_execute_with_many_bind_params assert_equal [[nil, 1]], @db.execute("select ?, ?", nil, 1) end def test_execute_with_nil_bind_params assert_equal [['foo']], @db.execute("select 'foo'", nil) end end end
Version data entries
6 entries across 6 versions & 1 rubygems