Issue 17126 - refresh of Database Explorer
Summary: refresh of Database Explorer
Status: CLOSED DUPLICATE of issue 16690
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: Frank Schönheit
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-19 16:21 UTC by hermann
Modified: 2006-05-31 14:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hermann 2003-07-19 16:21:37 UTC
I think, if I close a Database-Connection in the explorer or collapse the Tables
from a Database, than OOo should refresh the infos from the Database.
So what I mean is:

I have two connections to a MySQL-Database. one as root, another as user. If I
create as user a table, named Table1, than I see this table as root only if I
disconnect from MySQL and connect again. I think this should be done by simply
clicking on the Tables-Tree in the DB-Explorer. And next is that MySQL stores
the  Table as table1, not Table1 as OOo means. Here I have to re-connect too to
see the right names of the tables
Comment 1 marc.neumann 2003-07-21 08:31:42 UTC
The 'problem' is the connection pooling under
TOOLS/OPTIONS/DATASOURCES/. Please deactivate the connection pooling.
Then the database info should be renewed when you reconnect.

The second part with the wrong name I can't reproduce. I have used
MySQL via the MySQL driver via ODBC.

Which connection type do you use? And which version?
Comment 2 hermann 2003-07-21 12:23:42 UTC
I have deactivated the connection pooling, and as you say, you have to
reconnect to get the right values. I think this should be shown by a
simple close and reopen the tree-view of the tables.
BTW: have you tried to select only few tables via the
administration-dialog? Here it is the same. If I click on Apply I
think the view should be re-read from driver.

I use MySQL 4.0.13 mwith J/Connector3.0.8stable over JDBC on Windows.
So I think this is not worksforme
Comment 3 marc.neumann 2003-07-21 13:39:10 UTC
set target
Comment 4 marc.neumann 2003-07-21 13:46:11 UTC
The connection pooling mechanism has to be rethink, maybe it should
disabled by default and can be enabled if the user want to have a
performance advantage. Or a kind of 'refresh from database' entry in
the context menu of the tables container is also a good idea.

However , this is the first part, the second part 
'MySQL stores the  Table as table1, not Table1 as OOo means' I can
still not reproduce.
Comment 5 Frank Schönheit 2003-07-21 16:06:44 UTC
> Or a kind of 'refresh from database' entry in the context menu of the
> tables container is also a good idea.

you're referring to issue 16690 here :)

Hermann, please submit a second issue for the second part of your
report (the case of the table name). "One problem -> one issue" makes
dealing with issues much easier. Thanks :)

*** This issue has been marked as a duplicate of 16690 ***
Comment 6 Frank Schönheit 2003-07-21 16:07:12 UTC
closing duplicate
Comment 7 hermann 2003-07-21 19:50:10 UTC
Hi Frank,

for me this is the same. Because if I reconnect OOo to the Database,
OOo shows the right Name table1. 
And I cannot create an Tablename TaBlE1 in MySQL, but this is another
Bug. I have to show how to do this with MySQL, then I come back :-)
Comment 8 hermann 2003-07-22 07:55:48 UTC
I found that on Windows MySQL handles Tablenames case-insensitive, so
this is normal on windows, but then OOo should look how the Table is
named after it is created.
Comment 9 Frank Schönheit 2003-07-22 09:08:42 UTC
well, normally the driver should tell OOo about the case sensivity of
identifiers such as table names.
So either the driver is lying, or OOo is not respecting the driver
information. In any way, I still think this is a separate bug
(something like "wrong identifier case when creating tables in
MySQL"), because only a dedicated bug will ensure that it's
investigated and fixed, if possible.
Comment 10 hans_werner67 2004-02-02 12:27:43 UTC
change subcomponent to 'none'