Changeset [4cb77c36e1f16a70facd853ad5c7298d24746eaa] by Dan Kubb

December 30th, 2009 @ 04:05 PM

Fix bug with self referential many to many relationships

  • Alias tables in m:m queries when necessary
  • Move the query conditions from the relationships from the WHERE clause to the ON clause.
  • NOTE: need to clean up SQL generation soon. This was a really painful fix, and the code needs major refactoring in order to resolve other outstanding tickets.

[#902 state:resolved] [#1065 state:resolved]

Committed by Dan Kubb

  • M lib/dm-core/adapters/data_objects_adapter.rb
  • M lib/dm-core/adapters/oracle_adapter.rb
  • M lib/dm-core/adapters/sqlserver_adapter.rb
  • M spec/public/shared/resource_shared_spec.rb
  • M spec/semipublic/query_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »