Patches: Browse | Submit New | Admin

[#22516] fixed bug with creating a column with keyword for name in microsoftsqlserver extention

Date:
2008-10-22 23:30
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
fixed bug with creating a column with keyword for name in microsoftsqlserver extention

Detailed description
This patch prevents this error:

37000 (156) [unixODBC][FreeTDS][SQL Server]Incorrect syntax near the keyword 'database'.

by enclosing the column name with []'s

There are likely other places where this needs to be fixed, but for now this is the only one I have discovered.

This applies to:
/activerecord-odbc-adapter-2.0/lib/active_record/vendor/odbcext_microsoftsqlserver.rb

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item