Permalink
Browse files

Move dummy active? and reconnect! from sqlite to base adapter. Refere…

…nces #428.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent dc64887 commit 0632f5a93e20955cedc8834cec0bfe1cddb1bdd7 @jeremy jeremy committed Dec 4, 2005
View
13 activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -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?
View
13 activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -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:

0 comments on commit 0632f5a

Please sign in to comment.