Menu

Error generating date field in 2.6.5

Help
Joe
2007-10-18
2013-04-25
  • Joe

    Joe - 2007-10-18

    We are having a problem with a field that automatically gets set to the current date/time when the row is created. In Sql2Java 2.6.5 the field in the generated bean is this:

    private java.util.Date dateAdded = (getdate());

    In Sql2Java  2.4.0 it is this:

    private java.util.Date dateAdded;

    The "(getdate())" in the 2.6.5 version causes a compile error. The 2.4.0 version of the bean works fine. We are using SQL Server 2000.  Could a bug have been introduced somewhere between the 2.4.0 and 2.6.5 versions?

    Thanks,
    Joe

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.