jonpryor / dblinq2007

Automatically exported from code.google.com/p/dblinq2007
0 stars 0 forks source link

DbMetal on MySQL ENUM field results in "Object reference not set to an instance of an object" #270

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a small MySQl database (currently version 5.0.91) 
2. Create the following table  or any table that users the ENUM type: 

   CREATE TABLE IF NOT EXISTS user_role_assignment     
 ( username  VARCHAR(75)  NOT NULL
 , business_unit  INT(4)  NOT NULL REFERENCES business_unit(business_unit)
 , role_id  INT(9)  NOT NULL
 , is_employee  ENUM('0', '1')  NOT NULL
 , PRIMARY KEY  (username, business_unit,role_id)  
 );     

3. Run the DBmetal.exe command to create the csharp (.cs) file. DBMetal will 
generate the following error message: "Object reference not set to an instance 
of an object"

What is the expected output? What do you see instead?
I am expecting the datacontext file to be created with the definition of all my 
structures. Instead, I receive the error message.

Note: DbMetal.exe works perfectly when my tables do not have  an ENUM field 
defined.

What version of the product are you using? On what operating system?
I am using version 0.20.1

Please provide any additional information below.

Original issue reported on code.google.com by Nicolett...@gmail.com on 6 Aug 2010 at 8:30

GoogleCodeExporter commented 9 years ago
I forgot to mention that I am currently running on Windows 7

Original comment by Nicolett...@gmail.com on 6 Aug 2010 at 8:49

GoogleCodeExporter commented 9 years ago
This problem appears when running on Debian Lenny as well

Original comment by sche...@gmail.com on 30 Dec 2010 at 9:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
With types "Enum" and "Set" was error. (Issue 287 <=> Issue 270 <=> Issue 267)

Original comment by viru...@gmail.com on 1 Feb 2011 at 9:30