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


Daniel

You're right. Definitely a bug. What's happening is that the statement

ALTER TABLE stt ADD gdx DECIMAL(11,3) NOT NULL

causes the gdx column to get added. As there is no defaults, all values get
set to null, but as the column definition is NOT NULL, it fails.
Unfortunately, it doesn't back out cleanly. I'll see that this gets fixed in
the next release, but in the meantime, try adding a default to the column
definition.

Regards

Pete

--

Peter Hearty                         peter.hearty@lutris.com
Lutris Technologies (UK)        http://www.lutris.com
----- Original Message -----
From: "Daniel HERLEMONT" <dht@club-internet.fr>
To: <instantDB@enhydra.org>
Sent: Monday, November 06, 2000 12:00 PM
Subject: Re: InstantDB: Alter table statement error


> Thanks.
> But my alter is like this
> alter table tableName add colName TEX
>
> the column could be null, and mapped to to a TEXT type .
>
> Daniel.
>
>
> ----- Original Message -----
> From: Jens Panse <jens.panse@EasternGraphics.com>
> To: <instantDB@enhydra.org>
> Sent: Monday, November 06, 2000 8:57 AM
> Subject: 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.
> >
>
> --------------------------------------------------------------------------
---
> 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.