InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InstantDB: Date Types and In Clause fail.


Doing sql like this with dates causes an exception:

SELECT * FROM SOME_TABLE WHERE ? IN (DATE_0,DATE_1)

java.sql.Date dte = new java.sql.Date(...);
stmt.setDate(1,dte);

Doing this works fine.

SELECT * FROM MASTER_PROFILES WHERE ? = BIRTH_DATE_0

java.sql.SQLException: DATE_0
        at org.enhydra.instantdb.db.SQLProg.execute(SQLProg.java:288)
        at
org.enhydra.instantdb.jdbc.idbStatement.execute(idbStatement.java:235
)
        at org.enhydra.instantdb.JDBCAppl.action(JDBCAppl.java:90)

I know this isn't great sql but it handles a particular case for us.
Is this a bug or a just not a supported feature.
Can this be fixed in future versions.

jcl

-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.