Page 1 of 1

Silently truncates string above MaxLength

Posted: Tue 10 Mar 2009 11:36
by freakshow
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.

Posted: Tue 10 Mar 2009 15:31
by AndreyR
Thank you for the report, we are investigating the situation.

No fix?

Posted: Fri 17 Apr 2009 10:52
by freakshow
I cannot see (from release notes) that this is fixed yet...?

Posted: Fri 17 Apr 2009 12:50
by AndreyR
Sorry, still no updates on this issue.
I will post information about any updates as soon as possible.

Posted: Thu 07 May 2009 13:02
by AndreyR
We have fixed this problem, the fix will be included in the next build.