提交 0632f5a9 编写于 作者: J Jeremy Kemper

Move dummy active? and reconnect! from sqlite to base adapter. References #428.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 dc64887f
......@@ -52,6 +52,19 @@ def reset_runtime #:nodoc:
rt
end
# CONNECTION MANAGEMENT ====================================
# Is this connection active and ready to perform queries?
def active?
true
end
# Close this connection and open a new one in its place.
def reconnect!
end
protected
def log(sql, name)
if block_given?
......
......@@ -127,19 +127,6 @@ def quote_column_name(name) #:nodoc:
end
# CONNECTION MANAGEMENT ====================================
def active?
# TODO: SQLite is an embedded db, it doesn't lose connections,
# but perhaps some of its exceptions merit a retry, such as
# LockedException.
true
end
def reconnect!
end
# DATABASE STATEMENTS ======================================
def execute(sql, name = nil) #:nodoc:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册