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: Alter table statement error


if you want to add a column wich is not null make sure there are no entries in
the table or define a default value.
alter table test add nr decimal(10,2) default 2 not null



Daniel HERLEMONT schrieb:

> I got the same error ???
>
> Thanks for help ...
>
> ----- Original Message -----
> From: Juergen Roeder <juergen-roeder@t-online.de>
> To: InstantDB <instantDB@enhydra.org>
> Sent: Tuesday, September 19, 2000 6:03 PM
> Subject: InstantDB: Alter table statement error
>
> > Dear Peter!
> > I tried to alter a table with a statement like this:
> >
> > q ALTER TABLE stt ADD gdx DECIMAL(11,3) NOT NULL;
> >
> > getting a "java.sql.SQLEception: gdx column does not allow nulls" error
> > message.
> > It seems that the previous error results in a corrupted system table
> > cause when I
> > try to select from the table above I get the following error message:
> >
> > java.sql.SQLException: Internal error header recLEngth=73
> > Computed record length should be 81
> > Table stt:
> > at
> > org.enhydra.instantdb.jdbc.idbConnection.<init><idbConnection.jav:88>
> > and so on.
> > What's going wrong?
> > Thanks for help in advance
> > Jürgen
> > --
> > Juergen Roeder
> > IT-Consultant
> > Stettinerstrasse 8
> > D-61348 Bad Homburg v.d.H.
> > Fon   +49 6172 969948
> > Fax   +49 6172 969913
> > Mobil +49 173 3162452
> > ---------------------------------------
> > Natl. eMail: juergen-roeder@t-online.de
> > Intl. eMail: juergen_roeder@hotmail.com
> > ---------------------------------------
>
> -----------------------------------------------------------------------------
> 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.

--
-[ ]-/\-( )-----------------------------------------------EasternGraphics-------

Jens Panse

http://www.EasternGraphics.com
phone: +49 3677 678267


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