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
This commit is contained in:
Jeremy Kemper
2005-12-04 06:15:04 +00:00
parent dc64887f21
commit 0632f5a93e
2 changed files with 13 additions and 13 deletions

View File

@@ -52,6 +52,19 @@ module ActiveRecord
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?

View File

@@ -127,19 +127,6 @@ module ActiveRecord
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: