Bug 159886 - Base see a view that has been renamed as a table
Summary: Base see a view that has been renamed as a table
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Database-Tables
  Show dependency treegraph
 
Reported: 2024-02-25 17:53 UTC by prrvchr
Modified: 2024-12-23 18:29 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description prrvchr 2024-02-25 17:53:18 UTC
Description:
If you rename a view in Base (right click then rename) and if the driver allows it, after renaming the view Base takes it for a table.

Refreshing the tables does nothing, you are forced to close Base then reopen to bypass it.

Steps to Reproduce:
1.Rename a view in Base (right click then rename).
2.Once the view is renamed, it is considered as a table.
3.If you close Base then open you can see your renamed view.

Actual Results:
Once the view is renamed, it is considered as a table.

Expected Results:
Once the view is renamed, it is considered as a view.


Reproducible: Always


User Profile Reset: No

Additional Info:
If you close Base then open you can see your renamed view.
Comment 1 m_a_riosv 2024-02-25 21:04:52 UTC
Please attach a sample file, reduce the size as much as possible without private information, and paste the information in Menu/Help/About LibreOffice, there is a copy icon.
Comment 2 prrvchr 2024-02-25 23:06:44 UTC
I cannot attach a file it is a connection to a database and in addition I have not found a driver supplied with LibreOffice which allows tables or views to be renamed.
So the only solution if you want to be able to reproduce this bug is to install the jdbcDriverOOo[1] extension and use one of the drivers provided with it (SQLite for example). You will be able to reproduce very easily.

[1] https://prrvchr.github.io/jdbcDriverOOo/
Comment 3 Robert Großkopf 2024-02-26 19:53:02 UTC
No internal database will support to rename a view. You could try this with MySQL/MariaDB and direct connection. When renaming a view it will be shown by a symbol of a table. Only closing and reopening the Base file will show the symbol for a view.

Tested with LO 24.2.0.3 on OpenSUSE 15.4 64bit rpm Linux.
Comment 4 prrvchr 2024-02-26 21:43:27 UTC
> When renaming a view it will be shown by a symbol of a table

Thank you for the test, this confirms that this is not a problem coming from the jdbcDriverOOo extension, I did not succeed in this validation.

Not only is the view displayed like a symbol of a table, but also if we try to edit it Base edit it like a table.