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

Ticket #7054 (assigned defect)

Opened 2 years ago

Last modified 2 years ago

[PATCH] db:test:purge shouldn't rely on SQL Server command line tools

Reported by: Jakob S Assigned to: tomafro (accepted)
Priority: normal Milestone: 2.x
Component: Railties Version: edge
Severity: major Keywords: sqlserver test database
Cc:

Description

While it is possible to use MS SQL Server as the backend for your Rails application, Windows is hardly the most common (or best) development or deployment platform for Rails.

As such it doesn't make much sense to rely on the SQL Server command line tools (which are Windows specific as far as I know) when it can be avoided. Relying on those commands doesn't work when, say, developing on a Linux box using a remote SQL Server as I do.

This patch makes db:test:purge use pure SQL for recreating the test database instead of requiring osql for the task. It clears the DB connection to the test database prior to dropping it to prevent a "database in use" error.

Attachments

dont_use_osql_in_db_test_purge.diff (1.0 kB) - added by Jakob S on 01/15/07 13:53:30.

Change History

01/15/07 13:53:30 changed by Jakob S

  • attachment dont_use_osql_in_db_test_purge.diff added.

07/04/07 16:38:30 changed by tomafro

  • owner changed from core to tomafro.
  • status changed from new to assigned.