Hi Michael Strobel wrote:

> There is no issue for this, because I wanted to get sure that this is
> problem is not related to our driver. Since I couldn't reproduce the
> behavior with MySQL today, but only with Ingres I'm not quite sure about
> that. On the one hand the default values are not saved by the driver to
> .odb, are they? On the other hand I couldn't reproduce it with MySQL.

Hmm - you couldn't reproduce the default values vanishing, or you
couldn't reproduce the default values not being passed to the driver?

> The exact behavior of OOo/Ingres is like this:
> 
> The default values are saved properly when I create a new table. If I
> try to change the default values in an existing table only the default
> value of the last column of the table is changed successfully. Moreover
> this doesn't seem to be saved to the .odb, as the default values are
> reset when the connection is closed and reopened.
> 
> Any suggestions what would be a good start for digging further into
> this?

Sounds a little bit like there lingers another bug somewhere ...

The table designer is in dbaccess/source/ui/tabledesign. Saving a
changed design is centrally done in OTableController::alterColumns -
this is where I would start.

For the various column classes involved ... I'm not sure which of the
ones in dbaccess/source/core/api would be the best to start with (Ocke
would be able to answer this more precise, but he's still on vacation),
I suggest you simply touch every file with "column" in its name, and
every file which a "grep DEFAULT *" mentiones, build them with
"debug=1", and let the debugger guide you, starting from the
aforementioned alterColumns method.

Ciao
Frank


-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to