aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-09-28 17:55:35 +0100
committerJon Leighton <j@jonathanleighton.com>2012-09-28 18:08:14 +0100
commit144e8691cbfb8bba77f18cfe68d5e7fd48887f5e (patch)
tree161fc7cc2f7d1905c5ae6a9f761f65fd520116be /activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
parentf9c63ad56da541fa8fc007c01de64ed623053fd2 (diff)
downloadrails-144e8691cbfb8bba77f18cfe68d5e7fd48887f5e.tar.gz
rails-144e8691cbfb8bba77f18cfe68d5e7fd48887f5e.tar.bz2
rails-144e8691cbfb8bba77f18cfe68d5e7fd48887f5e.zip
Support for partial inserts.
When inserting new records, only the fields which have been changed from the defaults will actually be included in the INSERT statement. The other fields will be populated by the database. This is more efficient, and also means that it will be safe to remove database columns without getting subsequent errors in running app processes (so long as the code in those processes doesn't contain any references to the removed column).
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
index 4a48812807..4d5cb72c67 100644
--- a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
@@ -490,10 +490,6 @@ module ActiveRecord
alter_table(table_name, :rename => {column_name.to_s => new_column_name.to_s})
end
- def empty_insert_statement_value
- "VALUES(NULL)"
- end
-
protected
def select(sql, name = nil, binds = []) #:nodoc:
exec_query(sql, name, binds)