Bug 121096 - Databaseconnection: Connecting Calc-tables to database shows more tables as Calc-tables defined
Summary: Databaseconnection: Connecting Calc-tables to database shows more tables as C...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.1.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-01 15:50 UTC by Robert Großkopf
Modified: 2018-11-08 14:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Unpack the folder. Open the database-file in the folder. 4 tables instead of 2 tables were shown. (15.28 KB, application/zip)
2018-11-01 15:50 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2018-11-01 15:50:46 UTC
Created attachment 146228 [details]
Unpack the folder. Open the database-file in the folder. 4 tables instead of 2 tables were shown.

Open the attached database-file, which connects to the attached Calc-file.
Open on the left "Tables".
You could see 4 tables:
"Importieren1", "Importieren2", "Tabelle1" and "Tabelle2"
I have created the Calc-document and imported the data from a Base-document. Calc shows 4 tables instead of 2.
Open the calc-file and have a look: Only 2 tables.
Comment 1 Robert Großkopf 2018-11-01 15:55:56 UTC
Haven't written down configuration of the software:
LO 6.1.3.2 on OpenSUSE 15 64bit rpm Linux.
Comment 2 Drew Jensen 2018-11-01 16:36:57 UTC
Ok so I'm using Ubuntu 18.04 and LibreOffice 6.1.3.1
(also used 6.1, 5.4 and OOo 4.1.6 same results in all of them)

Yes, there are four tables displayed.

Two are the full Calc sheets.

Two are defined data ranges in the file. 

I believe this is the expected behavior.
Comment 3 ge60 2018-11-02 19:41:08 UTC
I have a calc document with only sheet2 (sheet1 was deleted long ago)

I get the following tables:

1. Table: „Importieren1“ with only 67 of 69 columns
2. Table: „Tabelle2“ with all data

Both tables refer to sheet2. Maybe the deleted sheet1 contained 67 columns
No named data ranges defined

LO 6.0.6; Windows 10 64bit
Comment 4 Drew Jensen 2018-11-03 22:36:51 UTC
(In reply to ge60 from comment #3)
> I have a calc document with only sheet2 (sheet1 was deleted long ago)
> 
> I get the following tables:
> 
> 1. Table: „Importieren1“ with only 67 of 69 columns
> 2. Table: „Tabelle2“ with all data
> 
> Both tables refer to sheet2. Maybe the deleted sheet1 contained 67 columns
> No named data ranges defined
> 
> LO 6.0.6; Windows 10 64bit

When you import data (such as dragging a Table or Query from the beamer window onto sheet) it automatically creates a named range (in English Import[x]). To not have that named range in the file you have to explicitly remove it. Perhaps you have inadvertently created a range?
Comment 5 Robert Großkopf 2018-11-08 14:23:43 UTC
Data ranges were indeed automatically defined by importing data from Base to Calc. So let us close this one as WORKSFORME.