Bug 132693 - firebird - cannot execute multiple SQL commands in one go in Tools > SQL (driver does not implement sdbc::XMultipleResults)
Summary: firebird - cannot execute multiple SQL commands in one go in Tools > SQL (dr...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.3.4.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Database-Firebird-Default
  Show dependency treegraph
 
Reported: 2020-05-04 19:21 UTC by jcs.LibreOffice
Modified: 2024-03-09 03:15 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 jcs.LibreOffice 2020-05-04 19:21:35 UTC
Executing two SQL commands fails with Firebird embedded. 

CREATE TABLE "Members" ( "ID" INT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, "FirstName" VARCHAR(20) NOT NULL , "LastName" VARCHAR(20) NOT NULL, "EmailName" VARCHAR(20), "EmailDomain" VARCHAR(20), "DateJoined" DATE );

INSERT INTO "Members" ("FirstName", "LastName", "EmailName", "EmailDomain") VALUES ('test','user2','testuser2','soroban.co.uk');

Error report

1: firebird_sdbc error: *Dynamic SQL Error *SQL error code = -104 *Token unknown - line 9, column 1 *INSERT caused by 'isc_dsql_prepare'

This works as expected with HSQLDB embedded
Comment 1 m_a_riosv 2020-05-04 21:44:04 UTC
Seems there is an explanation and a way to do in Ask.
https://ask.libreoffice.org/en/question/242377/base-execute-sql-command/
Comment 2 Alex Thurgood 2020-05-05 08:14:50 UTC
(In reply to m.a.riosv from comment #1)
> Seems there is an explanation and a way to do in Ask.
> https://ask.libreoffice.org/en/question/242377/base-execute-sql-command/

Given the tests made in that discussion, I'm wondering whether this might have something to do with transaction management within the SDBC connector.

Are transactions autocommitted with embedded hsqldb when run from the SQL command line tool in LO or does the SDBC driver somehow pick up the parameter from the DB as to whether transactions are autocommitted ?
Comment 3 Alex Thurgood 2020-05-05 08:17:12 UTC
Confirming nonetheless with

Version : 6.4.3.2
Build ID : 747b5d0ebf89f41c860ec2a39efd7cb15b54f2d8
Threads CPU : 8; OS : Mac OS X 10.15.4; UI Render : par défaut; VCL: osx; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded
Comment 4 Alex Thurgood 2020-05-05 08:24:02 UTC
Confirming that this works with embedded hsqldb.
Comment 5 Alex Thurgood 2020-05-05 08:29:49 UTC
Tested against postgresql 10.11 using the native postgres connector.

The combined execution also works there, creating the table and populating it.
Comment 6 Lionel Elie Mamane 2020-05-05 09:18:59 UTC
That's because the firebird driver doesn't implement the css::sdbc::XMultipleResults interface.
Comment 7 Julien Nabet 2020-05-05 10:11:16 UTC
can't help here.
=> uncc myself
Comment 8 bugposter 2022-03-09 18:14:44 UTC
Confirming nonetheless with

Version: 7.2.5.2 (x64) / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-IE (en_IE); UI: en-GB
Calc: threaded
Comment 9 QA Administrators 2024-03-09 03:15:29 UTC
Dear jcs.LibreOffice,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug