Skip to content

Commit 1fc3622

Browse files
author
lawrence
committed
Fixes Minimalistcs unit tests for SQL Server. Closes #9927 [lawrence]
git-svn-id: http://dev.rubyonrails.org/svn/rails/adapters/sqlserver@7971 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
1 parent ef5fe64 commit 1fc3622

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@ def columns(table_name, name = nil)
299299
end
300300
columns
301301
end
302+
303+
def empty_insert_statement(table_name)
304+
"INSERT INTO #{table_name} DEFAULT VALUES"
305+
end
302306

303307
def insert_sql(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)
304308
super || select_value("SELECT @@IDENTITY AS Ident")

0 commit comments

Comments
 (0)