Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "DDL transactions and savepoints for sqlite"

This reverts commit 38136f8.

Caused several test failures on the ci box:

http://ci.rubyonrails.org/builds/rails/38136f
[#2080 state:open]
  • Loading branch information...
commit 818556ec4f237b19f28fdecdfe6037718cceba37 1 parent c41ed92
@NZKoz NZKoz authored
View
21 activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -72,29 +72,10 @@ def binary_to_string(value)
#
# * <tt>:database</tt> - Path to the database file.
class SQLiteAdapter < AbstractAdapter
-
- class Version
- include Comparable
- def initialize(vs)
- @v = vs.split('.').map(&:to_i)
- end
- def <=>(rhs)
- @v <=> rhs.split('.').map(&:to_i)
- end
- end
-
def adapter_name #:nodoc:
'SQLite'
end
- def supports_ddl_transactions?
- sqlite_version >= '2.0.0'
- end
-
- def supports_savepoints?
- sqlite_version >= '3.6.8'
- end
-
def supports_migrations? #:nodoc:
true
end
@@ -399,7 +380,7 @@ def catch_schema_changes
end
def sqlite_version
- @sqlite_version ||= SQLiteAdapter::Version.new(select_value('select sqlite_version(*)'))
+ @sqlite_version ||= select_value('select sqlite_version(*)')
end
def default_primary_key_type
Please sign in to comment.
Something went wrong with that request. Please try again.