List:MySQL and .NET« Previous MessageNext Message »
From:Reggie Burnett Date:November 18 2004 4:49am
Subject:RE: Installer & MySqlDateTime
View as plain text  
> 
> Why not just have the adapter throw an exception when you get an
> legal-in-MySQL-illegal-in-dotNet date?  Or allow the developer to specify
> what you do with those dates.

You can do this now.  There is a connection string option pertaining to zero
date time values called "round zero datetime".  If this value is true, then
illegal datetime values get turned into DateTime.MinValue.  If false, an
exception is thrown.

-reggie

> 
>  - James
> 
> 
> --
> MySQL on .NET Mailing List
> For list archives: http://lists.mysql.com/dotnet
> To unsubscribe:    http://lists.mysql.com/dotnet?unsub=1

Thread
Installer & MySqlDateTimeJoshua Mouch17 Nov
  • Re: Installer & MySqlDateTimeSGreen17 Nov
    • RE: Installer & MySqlDateTimeReggie Burnett17 Nov
      • RE: Installer & MySqlDateTimeSGreen18 Nov
    • RE: Installer & MySqlDateTimeJames Moore18 Nov
      • RE: Installer & MySqlDateTimeJoshua Mouch18 Nov
        • RE: Installer & MySqlDateTimeReggie Burnett18 Nov
          • RE: Installer & MySqlDateTimeJames Moore18 Nov
      • RE: Installer & MySqlDateTimeReggie Burnett18 Nov