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


Hello, Hugo --

I'm pretty sure that with Oracle you do have to specify a length for a
VARCHAR2 column.  CHAR has a default length of 1 if not specified, but
VARCHAR2 has no default ...

Not sure about Sybase, though -- haven't used it.

Regards,
Bill Graham

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


> William,
>
> Thanx, I have just found that out, uuff ! 8-[
> Is this standard ? I was converting a Sybase script
> and no length was indicated. If memory serves me write
> Oracle 7.x also did not need this either.
>
> TIA.
>
> Hugo.
>
> ----- Original Message -----
> From: "William Graham" <wwg@tscnet.com>
> To: <instantdb@enhydra.org>
> Sent: Wednesday, October 11, 2000 4:44 PM
> Subject: 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.
> >
>
> --------------------------------------------------------------------------
---
> 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.