Bug 105767 - Prepared SQL INSERT statement inserts blank rows
Summary: Prepared SQL INSERT statement inserts blank rows
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
5.1.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-05 12:33 UTC by Andreas Säger
Modified: 2017-09-29 08:55 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Spreadsheet with Basic macros as link between DDE source and biblio.dbf (33.31 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-02-05 12:33 UTC, Andreas Säger
Details
Spreadsheet without macros as DDE source (26.97 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-02-05 12:34 UTC, Andreas Säger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Säger 2017-02-05 12:33:05 UTC
Created attachment 130915 [details]
Spreadsheet with Basic macros as link between DDE source and biblio.dbf

With StarBasic in OpenOffice I can prepare a statement like this ...
INSERT INTO "Table" ("A","B","C") VALUES (?,?,?)
... and it works with HSQL and dBase at least.
With StarBasic in LibreOffice I can do the same without errors but it does strange things to my dBase table. The new rows appear blank and they appear on top of the table grid.

I attach 2 spreadsheets from a little project of mine. One spreadsheet serves as DDE source, the other one catches the DDE and stores it to a database.
I've prepared it to use the built-in Bibliography which is stored in a dBase table.
1) Make a BACKUP of your <profile>/user/database/biblio/biblio.dbf. It will be harmed.
2) Save the 2 spreadsheets in the same directory with macros enabled.
3) Open them both. An auto-open macro will adjust the DDE Topic in cell B3. 
3a) My own issue: menu:Edit>Links... break all links and do a hard recalculation [Ctrl+Shif+F9 or reload]. Now the link should be established.
4) Activate Biblio_LO_Issue.ods, click the start button on the custom tool bar, confirm the start message, activate the source document and hit F9 to send new DDE data. 
5) Wait some 3 seconds for data arrive in Biblio_LO_Issue.ods and hit F9 again. The incoming data should be inserted into your biblio table.
6) Activate the Biblio_LO_Issue and hit the stop button.
7) Open the biblio table in the Bibliography data source. 

I see blank rows on top of the table which did not exist before and which are difficult to delete. Same problem with a dedicated dBase table. I just mis-used your biblio because it is already there. Restore it from backup after this session.
The exact same setup with AOO inserts data into the first 5 text fiedls of bilio.dbf.
The exact same setup with LibreOffice HSQLDB (embedded and stand-alone) inserts correct data.
Comment 1 Andreas Säger 2017-02-05 12:34:40 UTC
Created attachment 130916 [details]
Spreadsheet without macros as DDE source
Comment 2 Xisco Faulí 2017-02-05 20:31:55 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2017-08-30 19:27:56 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2017-09-29 08:55:02 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20170929