Issue 94433

Summary: Database is not accessible after rename tables
Product: Base Reporter: helenrussian
Component: codeAssignee: marc.neumann
Status: CLOSED FIXED QA Contact: issues@dba <issues>
Severity: Trivial    
Priority: P2 CC: frank.schoenheit, issues, kpalagin, mechtilde, rb.henschel
Version: OOo 3.0 RC3Keywords: oooqa, regression, release_blocker
Target Milestone: OOo 3.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 88888    
Attachments:
Description Flags
testbase none

Description helenrussian 2008-09-29 15:52:52 UTC
* Open attached database.
* Rename any tables.
* Save and close the database.
* Open the database document again.
* Switch to the "Tables" container. 

Error message «Driver class " could not be loaded» occurs.
Tested on Windows and Linux.

It's a regression the Issue 64885?
Comment 1 helenrussian 2008-09-29 15:54:14 UTC
Created attachment 56902 [details]
testbase
Comment 2 Mechtilde 2008-09-29 16:58:52 UTC
How do you create your database?
Please give a step-by-step description.

The status bar shows me "JDBC". It must show something with HSQL.

So I can't see which database backend you use.
Comment 3 yak777 2008-09-29 17:44:45 UTC
Confirm bug. OO.o 3.0 RC1
Comment 4 helenrussian 2008-09-29 17:57:35 UTC
@mechtilde
> Please give a step-by-step description.

Run OOo Base.
In Wizard select «Create a new database» - > Finish
Save the database As Base4.odb -> OK.

New database opens.
Switch to the «Tables» container
Select «Create Table in Design View...»
Enter names for first field as «text1» and second field as «text2». Types field
leaves as default «Text [Varchar]».
Save table. Enter name table as «Table1» -> OK
To ask «Should be a primary Key?» select «Yes»
Close table.
Close OOo Base.

Run OOo Base.
In Wizard select «Open an existing database file», in «Recently used» Base4 ->
Finish.
Base4.odb opens (status bar shows "HSQL" yet).

Switch to the «Tables» container. Look «table1». 
Select «table1», right mouse click select «Rename». Rename table «table1» ->
«table12». OK.
Save Base4.odb, Close OOo Base.

Run OOo Base.
In Wizard select «Open an existing database file», in «Recently used» Base4 - >
Finish.
Base4.odb opens (status bar shows "JDBC").
Switch to the «Tables» container. 
Look Error message.

Comment 5 yak777 2008-09-29 18:04:32 UTC
> How do you create your database?

OO.o Base - > Database Wizard -> Create a new database - > (Next) -> (Finish)
(use OO.o database format)
Save file
Tables - > Create table in Design View - > ...... 
Close OO.o
 ReOpen attached database.
 Rename any tables.
 Save and close the database.
 Open the database document again.
 Switch to the "Tables" container.

Comment 6 Regina Henschel 2008-09-29 18:18:40 UTC
I can reproduce the error as described with German OOo3.0RC3 on WinXP.
Comment 7 Regina Henschel 2008-09-29 18:27:39 UTC
It happens also with existing database with embedded HSQL. Rename table, save,
close, reopen. Typ has changes to JDBC.
Comment 8 Regina Henschel 2008-09-29 18:40:42 UTC
The content.xml is empty. Files have wrong time.
Comment 9 Mechtilde 2008-09-29 20:29:24 UTC
I can reproduce it with RC3 under Debian

Comment 10 Frank Schönheit 2008-09-29 20:39:42 UTC
sigh ...
Comment 11 Frank Schönheit 2008-09-29 22:01:11 UTC
for the record: The bug is present in DEV300m20 already, but not in DEV300m15.
Not sure when it was introduced, though ...
Comment 12 ocke.janssen 2008-09-30 08:10:58 UTC
Thanks for taking this one.
Comment 13 Frank Schönheit 2008-09-30 08:27:03 UTC
fixed in CWS dba30y. Builds running.
Comment 14 Frank Schönheit 2008-09-30 08:28:29 UTC
Note: issue 94455 is the DEV300-version of this issue. We fixed the problem on
the OOO300 branch with a less-than-optimal solution, but will provide a better
fix for 3.1.
Comment 15 Frank Schönheit 2008-09-30 09:11:40 UTC
fs->msc: please verify in CWS dba30y
Comment 16 rt 2008-09-30 09:29:55 UTC
fs: Does your comment about issue 94455  mean that this CWS (dba30y) may not or
even must not get cloned for DEV300 workspace? If so, please state that in an
CWS comment, as per default all OOO300-childworkspaces get cloned for DEV300.
Comment 17 marc.neumann 2008-09-30 09:42:52 UTC
verified in CWS dba30z

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=OOO300%2Fdba30z
Comment 18 Frank Schönheit 2008-09-30 10:40:13 UTC
fs->rt: yes, you're right, the CWS is not intended for DEV300. Sorry, planned to
add a note in EIS, but got distracted by some meetings ... :-\
Comment 19 ooomod 2008-09-30 14:27:09 UTC
FYI,

it's reproductible on RC3 MacOSX Native.
Comment 20 Mechtilde 2008-10-06 10:25:11 UTC
verified in OOO300_m9 -> closed