NullableSByte for Nullables

Description

I needed a NullableSByte for MySQL tinyint, so I coded it, together with the needed NHibernate types (SByteType, SByteSqlType). Mostly copied from ByteType. I'll attach the added files and the patch for existing ones.

Environment

None

Attachments

2

Activity

Show:

MikeM 
February 26, 2005 at 7:32 AM

Released NHibernateContrib 0.7

MikeM 
February 17, 2005 at 6:04 AM

should have been resolved - not closed. Will close when there is a build for it.

MikeM 
February 17, 2005 at 6:04 AM

NullableSBtyeType is now in the Nullable.NHibernte project

Former user 
December 11, 2004 at 1:41 PM

For MySQL it's tinyint, but I don't understand where this should be specified. In the Dialect? Is it just for SchemaExport to work?

MikeM 
December 11, 2004 at 12:33 PM

I've got SByteSqlType, SByteType, and the modifications to NHibernate.cs, TypeFactory and test fixtures for them committed to cvs. The one thing I'm not sure about is how to map them to their ddl counterpart. Actually we didn't need the ClsCompliant attribute because SByte is not part of the public api since everything is object.

For MsSql it probably makes sense to map it to "int" and not "tinyint" because "tinyint" is only for values 0 to 255, while "int" can hold negative numbers.

Sergey, what should the MySQL type be? Anyone know what Oracle, DB2, etc... should use?

Donald, feel free to add the Nullable SByte into the Nullables project. In the build file I'll (or you can if you want) add a ClsCompliant attribute just like the NHibernate.build file has. If on the NullableSByte you add a [ClsCompliant(false)] the assembly as a whole should still be cls compliant.

Mike

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Who's Looking?

Open Who's Looking?
Created November 19, 2004 at 11:09 AM
Updated April 6, 2011 at 11:21 AM
Resolved February 17, 2005 at 6:04 AM
Who's Looking?