MySQL DbTypes and Language Conversions

Please enter any bugs here. We will check this daily!

MySQL DbTypes and Language Conversions

Postby k-dub on Sat Mar 12, 2005 7:46 am

In MyGeneration 1.1.1, the DbTargets.xml file and Languages.xml file seem to be missing mappings for TINYTEXT and MEDIUMTEXT for MySQL2.

I'm trying to test against a Wordpress blog database, which uses TINYTEXT here and there.

Now that I've hacked my local files to map those column types, I'm discovering that NHibernate doesn't yet have its own type classes for the unsigned numeric types like \"uint\" and \"ulong\".
k-dub
Sergeant
 
Posts: 29
Joined: Thu Aug 26, 2004 2:10 pm

Postby mike.griffin on Sat Mar 12, 2005 12:19 pm

I could have sworn I had those in there. I'll get them in for the next release. Glad it's working for you though ...
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Postby mike.griffin on Wed Mar 16, 2005 3:46 am

I'm checking these in tonight:

1) Here are my DbTarget mappings

Code: Select all
<Type From=\"LONGTEXT\" To=\"MySqlDbType.Blob\" />
<Type From=\"MEDIUMTEXT\" To=\"MySqlDbType.MediumBlob\" />
<Type From=\"TINYTEXT\" To=\"MySqlDbType.TinyBlob\" />

2) Here are my language mappings:

Code: Select all
<Type From=\"LONGTEXT\" To=\"string\" />
<Type From=\"MEDIUMTEXT\" To=\"string\" />      
<Type From=\"TINYTEXT\" To=\"string\" />

The above language mappings are for C#, in VB.NET of course they are \"String\".

Is this you how entered your mappings?
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN


Return to Defect Reporting (DON'T Post dOOdad bugs HERE)

Who is online

Users browsing this forum: No registered users and 0 guests

cron