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: to_date function


Hi,
 
I've some troubles with the to_date function. Here is a small sample code for commsql
Enter SQL string, or . to exit
create table titi(d date)
main create table titi(d date)
Enter SQL string, or . to exit
insert into titi values('1999-12-31 59:59:999')
main insert into titi values('1999-12-31 59:59:999')
Enter SQL string, or . to exit
insert into titi values(to_date('01-01-2000','dd-mm-yyyy'))
main insert into titi values(to_date('01-01-2000','dd-mm-yyyy'))
main insert into titi values(to_date('01-01-2000','dd-mm-yyyy'))
 Don't understand SQL after: "insert"
 Expected: "}" found: "("
java.sql.SQLException: insert into titi values(to_date('01-01-2000','dd-mm-yyyy'
))
 Don't understand SQL after: "insert"
 Expected: "}" found: "("
        at db.SQLProg.execute(SQLProg.java:214)
        at jdbc.idbStatement.execute(idbStatement.java, Compiled Code)
        at commsql.main(commsql.java, Compiled Code)
I create a simple table called titi with a date column. When I insert a date using JDBC format (seen in this mailing list), it works. When I use to_date function, it doesn't...
 
The same SQL script works well on an Oracle database.
 
I'm using InstantDB v3.13
 
Thanks for your help
Gerald.
________________________________
Gérald QUINTANA
  gerald.quintana@ecl2000.ec-lyon.fr
  http://www.multimania.com/gquintana