Ticket #344 (closed defect: fixed)

Opened 17 years ago

Last modified 17 years ago

ReactorAdaptor uses name when it should use alias for pri key

Reported by: denny Owned by:
Priority: normal Milestone:
Version: 3.0.178 Severity: major
Keywords: Cc:

Description

Just what the subject says.

Here's a patch, inline, because it's one line.

Index: ModelGlueGesture/ModelGlue?/unity/orm/ReactorAdapter.cfc =================================================================== --- ModelGlueGesture/ModelGlue?/unity/orm/ReactorAdapter.cfc (revision 14973) +++ ModelGlueGesture/ModelGlue?/unity/orm/ReactorAdapter.cfc (working copy) @@ -84,7 +84,7 @@

<cfset md[fields[i].alias].comment = dict.getValue("#arguments.table#.#fields[i].alias#.comment") />

<cfif fields[i].primaryKey>

- <cfset arrayAppend(result.primaryKeys, fields[i].name) /> + <cfset arrayAppend(result.primaryKeys, fields[i].alias) />

</cfif>

Change History

Changed 17 years ago by DanWilson

  • status changed from new to closed
  • resolution set to fixed

This is in SVN commit 153.

Note: See TracTickets for help on using tickets.