hoonsbara / octalforty-wizardby

Automatically exported from code.google.com/p/octalforty-wizardby
1 stars 0 forks source link

SQL CE Types return default length #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using SQL CE database Add column with type "AnsiString" and give it any 
length > 1 in .mdl file
2.
3.

What is the expected output? What do you see instead?
Expected new column in database of type nvarchar with length equal to length 
specified in .mdl file. Instead you see column of type nvarchar with length 1

What version of the product are you using? On what operating system?
octalforty-wizardby-1.0.0.131-a3

Please provide any additional information below.

Found bug in source code. In class "SqlCeTypeMapper" in function 
"FormatBareNativeType(string bareNativeType, int? length)". Code is currently 
as follows:

return bareNativeType;

Fixed by changing code to the following:

return base.FormatBareNativeType(bareNativeType, length);

Original issue reported on code.google.com by grig...@gmail.com on 27 Jul 2010 at 9:57

GoogleCodeExporter commented 8 years ago

Original comment by anton.go...@gmail.com on 28 Jul 2010 at 8:37

GoogleCodeExporter commented 8 years ago

Original comment by anton.go...@gmail.com on 28 Jul 2010 at 9:40

GoogleCodeExporter commented 8 years ago
This issue was updated by revision r156.

Original comment by anton.go...@gmail.com on 28 Jul 2010 at 10:31

GoogleCodeExporter commented 8 years ago
This issue was updated by revision r157.

AnsiString is treated exactly as String

Original comment by anton.go...@gmail.com on 28 Jul 2010 at 10:35