diff options
author | Michael Koziarski <michael@koziarski.com> | 2009-03-02 19:07:39 +1300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-03-02 19:07:39 +1300 |
commit | 818556ec4f237b19f28fdecdfe6037718cceba37 (patch) | |
tree | 54ae3fc4eabbce7798a96146a4890c3e9278eb92 | |
parent | c41ed929bbbe649c730a90e1f3bf8a1f88dc1f81 (diff) | |
download | rails-818556ec4f237b19f28fdecdfe6037718cceba37.tar.gz rails-818556ec4f237b19f28fdecdfe6037718cceba37.tar.bz2 rails-818556ec4f237b19f28fdecdfe6037718cceba37.zip |
Revert "DDL transactions and savepoints for sqlite"
This reverts commit 38136f86dc5504bde94dc7399d4a854023d7481f.
Caused several test failures on the ci box:
http://ci.rubyonrails.org/builds/rails/38136f
[#2080 state:open]
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb index 8373163e56..5390f49f04 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb @@ -72,29 +72,10 @@ module ActiveRecord # # * <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 @@ module ActiveRecord 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 |