Hi Micha,
Michael Strobel wrote:
Hi Ocke,
- how about just call dropObject at the views
Calling dropObject at the views results in a SQL exception since the
view is already dropped in the database. I just tried to catch the
exception and ignore it to see what happens, but calling that didn't
solve the actual problem.
Another try to get the right object could be to query *this for XDrop
and then call dropObject
I don't know if it works but give it a try. :-)
- or forbid that a table which is referenced in a vew can not be
deleted :-)
This is possible, but unfortunately my project lead isn't happy with
this solution as it doesn't reflect the standard behavior of the
database. Working on that ;)
I have still one more question ;) I began the development using Windows
and now tried to compile the driver for Linux, which gave me some linker
problems. As said before the driver is derived from your MySQL driver,
but there are also some classes in the driver inherited from the OO JDBC
driver, which for the implementation of autoincrement columns. (I know
it's nasty, but I don't see a chance to change it.)
Which classes you are talking about? The best way is to get rid of the
dependency of JDBC.
To get the symbols for the linker under Windows I just added the
jdbc.lib to the SHL1STDLIBS in the makefile, which works fine for
linking, but under Linux putting -ljdbc2 doesn't work. The linker
generates a lot of undefined symbol errors for the symbols from the
libjdbc2.so. I have also tried to add it to SHL1LIBS instead, but this
gives results in multiple definitions of component_getFactory and
component_getImplementationEnvironement. Any ideas?
You can't link against JDBC that simple. I would prefer that you isolate
the classes you need and move them into dbtools (that's the commontools
folder).
In that way both can share it and we don't have duplicate (bad) code ;-)
Best regards,
Ocke
Best reagards,
Micha
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Ocke Janssen Tel: +49 40 23646 661, x66661
Dipl. Inf(FH) Fax: +49 40 23646 550
Sun Microsystems Inc.
Nagelsweg 55 mailto:[EMAIL PROTECTED]
D-20097 Hamburg http://www.sun.com/staroffice
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]