Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6014

Show
Ignore:
Timestamp:
01/23/07 04:23:29 (3 years ago)
Author:
bitsweat
Message:

SQLServer: quote table name in indexes query. Closes #2928.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/CHANGELOG

    r6013 r6014  
    11*SVN* 
     2 
     3* SQLServer: quote table name in indexes query.  #2928 [keithm@infused.org] 
    24 
    35* Subclasses of an abstract class work with single-table inheritance.  #5704, #7284 [BertG, nick+rails@ag.arizona.edu] 
  • trunk/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb

    r5953 r6014  
    431431        ActiveRecord::Base.connection.instance_variable_get("@connection")["AutoCommit"] = false 
    432432        indexes = []         
    433         execute("EXEC sp_helpindex #{table_name}", name) do |sth| 
     433        execute("EXEC sp_helpindex '#{table_name}'", name) do |sth| 
    434434          sth.each do |index|  
    435435            unique = index[1] =~ /unique/