Skip to content

DateTime loading fix #7

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Define a datetime field in the H2 database, and try to load it.

What is the expected output? What do you see instead?
The interface crashes, I expect to load the datetime.

What version of the product are you using? On what operating system?
Latest H2Sharp from SVN.

Please provide any additional information below.
Please use the following code in H2DataReader:

public override DateTime GetDateTime(int ordinal)
{
  java.sql.Timestamp ts = set.getTimestamp(ConvertOrdnal(ordinal));
  if (ts == null)
  {
    return UTCStart;
  }
  return System.DateTime.Parse(ts.ToString());
}

Original issue reported on code.google.com by rene.ols...@gmail.com on 12 May 2012 at 8:45

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions