mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
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:
@@ -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?
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user