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

Ticket #8886 (new defect)

Opened 10 months ago

Last modified 10 months ago

[PATCH] SQL Server adapter columns method rewrite (including default values fix)

Reported by: tomafro Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: sqlserver null default columns
Cc:

Description

The columns method in the SQL Server adapter is old and crufty. And it doesn't work. This patch cleans up the code and fixes the bugs associated with default value detection (where null defaults weren't always recognized). It includes tests for all new functionality.

Tested against both ADO and ODBC connections with no regressions found.

Attachments

sqlserver_improved_column_schema_reflection.diff (7.7 kB) - added by tomafro on 07/05/07 16:43:36.

Change History

07/05/07 16:43:36 changed by tomafro

  • attachment sqlserver_improved_column_schema_reflection.diff added.

(in reply to: ↑ description ) 07/18/07 03:38:41 changed by rrich

Replying to tomafro:

+1 This ticket fixes issues with default null values and SQL Server. Please apply as soon as possible.