Re: ERXMigrationTable.newColumn does not set default value
Re: ERXMigrationTable.newColumn does not set default value
- Subject: Re: ERXMigrationTable.newColumn does not set default value
- From: Anjo Krank <email@hidden>
- Date: Thu, 10 Apr 2008 05:17:43 +0200
Am 09.04.2008 um 23:28 schrieb Helmut Schottmüller:
table.newColumn("responsible", java.sql.Types.LONGVARCHAR, 0, 0,
0, false, "", "default");
to fill the new field with a default value "default" to deal with
the already existing datasets.
But I always get an org.postgresql.util.PSQLException: ERROR:
column "responsible" contains null values.
Using DB defaults may *not* be a good idea if you don't also have them
in EOF code. EOF will save and then have a different value in mem as
in the DB.
Cheers, Anjo _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden