提交 0ddcade9 编写于 作者: E Eileen M. Uchitelle

Merge pull request #25272 from kamipo/fix_sqlite3_test_failure

Fix sqlite3 test failure
......@@ -80,14 +80,14 @@ def quoted_id
def test_quoting_binary_strings
value = "hello".encode('ascii-8bit')
type = Type::String.new
type = ActiveRecord::Type::String.new
assert_equal "'hello'", @conn.quote(type.serialize(value))
end
def test_quoted_time_returns_date_qualified_time
value = ::Time.utc(2000, 1, 1, 12, 30, 0, 999999)
type = Type::Time.new
type = ActiveRecord::Type::Time.new
assert_equal "'2000-01-01 12:30:00.999999'", @conn.quote(type.serialize(value))
end
......
......@@ -4,7 +4,7 @@ class SQLite3StatementPoolTest < ActiveRecord::SQLite3TestCase
if Process.respond_to?(:fork)
def test_cache_is_per_pid
cache = StatementPool.new(10)
cache = ActiveRecord::ConnectionAdapters::SQLite3Adapter::StatementPool.new(10)
cache['foo'] = 'bar'
assert_equal 'bar', cache['foo']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册