On Tue, 2010-09-21 at 09:32 +1000, James Darbyshire wrote:
> I found the mapping here
> --> http://msdn.microsoft.com/en-us/library/bb386947.aspx (same as
> yours) but it suggests in the graph and in the binary table
> (http://msdn.microsoft.com/en-us/library/bb386947.aspx#BinaryMapping)
> that timestamp is byte[] or binary.

My apologies, I apparently misread "timestamp" as "datetime."  I need to
check my reading comprehension. :-/

Anyway, the reason it's mapped to DateTime is because of
src/DbLinq/Vendor/Implementation/SchemaLoader.TypeMapping.cs
SchemaLoader.MapDbType():

            case "timestamp":
            // ...
                return typeof(DateTime);

Alas, I don't know why this type was selected; the commit message
doesn't provide any help [0].

Looks like another case of i238 [1]/i271 [2]: DbLinq really shouldn't be
hard-coding these type mappings...

 - Jon

[0] r934: Added uuid type support (for PostgreSQL)
[1] http://code.google.com/p/dblinq2007/issues/detail?id=238
[2] http://code.google.com/p/dblinq2007/issues/detail?id=271


-- 
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en.

Reply via email to