Permalink
Browse files

Merge [6014] from trunk. References #2928.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-pre-release@6015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent a182d85 commit 70f4a92c5deededbe1932a11f6d8e0f4f8c6ba82 @jeremy jeremy committed Jan 23, 2007
@@ -1,3 +1,8 @@
+*SVN*
+
+* SQLServer: quote table name in indexes query. #2928 [keithm@infused.org]
+
+
*1.15.1* (January 17th, 2007)
* Fix nodoc breaking of adapters
@@ -425,7 +425,7 @@ def tables(name = nil)
def indexes(table_name, name = nil)
ActiveRecord::Base.connection.instance_variable_get("@connection")["AutoCommit"] = false
indexes = []
- execute("EXEC sp_helpindex #{table_name}", name) do |sth|
+ execute("EXEC sp_helpindex '#{table_name}'", name) do |sth|
sth.each do |index|
unique = index[1] =~ /unique/
primary = index[1] =~ /primary key/

0 comments on commit 70f4a92

Please sign in to comment.