We're updating the issue view to help you get more done. 

Loading a single object does not throw an Exception if the database returns more than one row

Description

When retrieving a single object from the database (LifetimeService.GetObject(), resolving a single valued relation) a query is issued that selects the required row via its primary key (WHERE ID = <value>).

Usually there never will be returned more than one row.

In case the "ID" column is not the primary key, and more than one row is returned, this will go unnoticed - the first returned row is used.

An Exception should be thrown instead.

Status

Assignee

Michael Ketting

Reporter

Michael Walk

Labels

None

Components

Fix versions

Affects versions

Priority

Normal
Configure