New Posts New Posts RSS Feed: Case-Sensitivity problem with GetEntities
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Case-Sensitivity problem with GetEntities

 Post Reply Post Reply
Author
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Topic: Case-Sensitivity problem with GetEntities
    Posted: 16-Jul-2007 at 3:43pm

Our database is case-sensitive. We get the error shown below when a primary key varchar field contains data with the same value, differing only by text. For example, use this table:

 

create table CaseTest (col1 varchar(10))

go

insert CaseTest values ('a')

insert CaseTest values ('A')

 

Set col1 as primary key in the object mapper. Then call GetEntities(Of CaseTest) (see screenshot) to reproduce it. I tried setting

pm.DataSet.CaseSensitive = True

but it didn’t help (same error).

 

What can I do to make DevForce understand that ‘a’ and ‘A’ are different entities?

Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jul-2007 at 3:44pm
For the moment we are considering the problem you reported to us (Uniqueness constraint violation exception for characters of different case as primary keys when case-sensitivity set to true in DevForce) to be a bug.
 
We expect it will be fixed in our next release.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down