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]

Re: InstantDB: Newbie question


Hi, Hugo --

You need to specify a column size for the varchar:

; descp varchar(50)

or something like that ...

Regards,
Bill Graham

----- Original Message -----
From: Hugo Ferreira <hmf@inescporto.pt>
To: <instantdb@enhydra.org>
Sent: Wednesday, October 11, 2000 8:28 AM
Subject: InstantDB: Newbie question


> Hi,
>
> I would like to know if the following SQL statement is ok.
> I keep getting an erro: InstantDB.sql java.lang.NumberFormatException:
null
>
> e CREATE TABLE oes_order_status_code (    <--- runs ok
>   code    char(1)  primary key,
>   descp    varchar  );
> ;e CREATE TABLE oes_order_status_code ( <-- breaks
> ;  code    char(1)  not null  primary key,
> ;  descp    varchar  not null );
>
> TIA.
> Hugo Ferreira.
>
> ////////////// Exception ////////////////
>
> InstantDB.sql CREATE TABLE oes_order_status_code (  code    char(1)
primary
> key
> ,  descp    char  not null )
> InstantDB.sql java.lang.NumberFormatException: null
> InstantDB.sql java.lang.NumberFormatException: null
> java.sql.SQLException: null
>         at org.enhydra.instantdb.db.SQLProg.execute(SQLProg.java:276)
>         at
> org.enhydra.instantdb.jdbc.idbStatement.execute(idbStatement.java, Co
> mpiled Code)
>         at
> org.enhydra.instantdb.jdbc.idbStatement.executeUpdate(idbStatement.ja
> va:103)
>         at org.enhydra.instantdb.SampleThread.run(ScriptTool.java,
Compiled
> Code
> )
>         at java.lang.Thread.run(Thread.java:479)
>
>
> --------------------------------------------------------------------------
---
> 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.
>

-----------------------------------------------------------------------------
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.