Bug 156464 - FIREBIRD: AutoValue shows 0 for all new Entries in Query with Alias
Summary: FIREBIRD: AutoValue shows 0 for all new Entries in Query with Alias
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Database-Firebird-Default
  Show dependency treegraph
 
Reported: 2023-07-25 14:04 UTC by Robert Großkopf
Modified: 2023-08-13 03:20 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Shows 0-result of autovalue when table is queries with alias. (27.58 KB, image/png)
2023-07-25 14:04 UTC, Robert Großkopf
Details
Open the query in the database file and add a new "Name" - ID will be '0' (4.50 KB, application/vnd.oasis.opendocument.database)
2023-08-09 13:19 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 2023-07-25 14:04:35 UTC
Created attachment 188549 [details]
Shows 0-result of autovalue when table is queries with alias.

Open the attached screenshot.
There is a table with AutoValue.
Query with 
SELECT * FROM "tbl_Test"
will work as expected.
AutoValue will be shown in query.

Now there is an alias for the table:
SELECT * FROM "tbl_Test" AS "a"
AutoValue won't be refreshed any more. Wrong entry '0' is shown instead.

I'm using this kind of query for correlating queries, which works well with internal HSQLDB. With FIREBIRD the correlation works, but the connected value of the AutoValue field for the subform is '0' instead of a real value of the table.
Comment 1 Stéphane Guillou (stragu) 2023-08-09 11:46:13 UTC
Thanks for the report, Robert.
Can you please provide example files, and test again in LO 7.6?
Thank you!
Comment 2 jcsanz 2023-08-09 12:03:05 UTC
I can confirm the erroneous behavior

-----------------------
Version: 7.6.0.1 (X86_64) / LibreOffice Community
Build ID: 776eaf34564cbf3f034a0ba1fd1d5c32ff9ccf1c
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded
-----------------------
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 34387332173782498acd4998c7c665d04ebc3c7d
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded
Comment 3 Robert Großkopf 2023-08-09 13:19:57 UTC
Created attachment 188873 [details]
Open the query in the database file and add a new "Name" - ID will be '0'
Comment 4 Robert Großkopf 2023-08-09 13:21:03 UTC
Following comment 2 I will set this one to NEW
Comment 5 Stéphane Guillou (stragu) 2023-08-09 13:40:27 UTC
Thank you both!
Also reproduced on Linux with a recent master build, as well as:

Version: 6.1.0.3
Build ID: efb621ed25068d70781dc026f7e9c5187a4decd1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2; 
Locale: en-AU (en_AU.UTF-8); Calc: group threaded