Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
Message: 26757
BY: Mark Fraser (mark100net)
DATE: 2007-08-14 16:56
SUBJECT: RE: MS SQL Server column type problem

 

I figured out the problem. The column name is "object_id". As a result there is no 'automatic' method of that name representing the column (because ,of course, object_id is already a member of any class).

Therefore the only way to reference it is via model_name.attributes["object_id"].

It makes me wonder whether the built-in to_xml should do this by default but in my case I will have to override to_xml for this model (unless someone has a better suggestion).



Thread View

Thread Author Date
MS SQL Server column type problemMark Fraser2007-08-14 16:08
      RE: MS SQL Server column type problemMark Fraser2007-08-14 16:56

Post a followup to this message