aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-12 16:04:55 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-26 13:44:08 -0700
commite60fecd8296121b27530d6b2425830e605740382 (patch)
tree4c246277a9bb93e32c1bebd593abeab29aabf3fb /activerecord
parent853d39e8540a8af4c42592a172d4cf4f9c0f4e9f (diff)
downloadrails-e60fecd8296121b27530d6b2425830e605740382.tar.gz
rails-e60fecd8296121b27530d6b2425830e605740382.tar.bz2
rails-e60fecd8296121b27530d6b2425830e605740382.zip
removing more calls to execute
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
index 0d828046d7..1a5ce0c9a2 100644
--- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -209,12 +209,12 @@ module ActiveRecord
end
def indexes(table_name, name = nil) #:nodoc:
- execute("PRAGMA index_list(#{quote_table_name(table_name)})", name).map do |row|
+ exec("PRAGMA index_list(#{quote_table_name(table_name)})", name).map do |row|
IndexDefinition.new(
table_name,
row['name'],
row['unique'].to_i != 0,
- execute("PRAGMA index_info('#{row['name']}')").map { |col|
+ exec("PRAGMA index_info('#{row['name']}')").map { |col|
col['name']
})
end