Silently truncates string above MaxLength

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
freakshow
Posts: 12
Joined: Mon 28 Jul 2008 12:38
Location: Oslo, Norway

Silently truncates string above MaxLength

Post by freakshow » Tue 10 Mar 2009 11:36

Provider for Oracle, v5.0.22

I.e. if a varchar2 column is set to a max length of 50, a string with a length bigger than 50 will just get silently truncated by EF and inserted "normally".

I have not yet tested behaviours with other datatypes.

EF provider for MSSQL will throw an exception.

This is a critical bug, as an exception is allways expected in these kind of scenarios.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 10 Mar 2009 15:31

Thank you for the report, we are investigating the situation.

freakshow
Posts: 12
Joined: Mon 28 Jul 2008 12:38
Location: Oslo, Norway

No fix?

Post by freakshow » Fri 17 Apr 2009 10:52

I cannot see (from release notes) that this is fixed yet...?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 17 Apr 2009 12:50

Sorry, still no updates on this issue.
I will post information about any updates as soon as possible.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 07 May 2009 13:02

We have fixed this problem, the fix will be included in the next build.

Post Reply