Please do so, yes.  We'll need it to track this issue and any pull requests
related to it.

Steve Bohlen
[email protected]
http://blog.unhandled-exceptions.com
http://twitter.com/sbohlen


On Sun, Mar 4, 2012 at 1:09 PM, Mike Charalambous <
[email protected]> wrote:

> I thought about the problem some more and amended the TimeAsTimeSpanType
> Set method to the following:
>
>
> public override void Set(IDbCommand st, object value, int index)
> {
>     if (((IDataParameter)st.Parameters[index]).DbType == DbType.DateTime)
>     {
>         DateTime date = BaseDateValue.AddTicks(((TimeSpan)value).Ticks);
>         ((IDataParameter)st.Parameters[index]).Value = date;
>     }
>     else
>
>     {
>         ((IDataParameter)st.Parameters[index]).Value = value;
>     }
> }
>
> This works for both Sql Server and Sybase ADS. Should I create a JIRA
> issue for this?
>
> Thanks
> Michael
>

Reply via email to