Description: In HSQLDB I could enter several commands directly in Tools > SQL: ALTER TABLE "Adresse" ADD "Vorname" VARCHAR(25) BEFORE "Name" ALTER TABLE "Adresse" ADD "email" VARCHAR(50) BEFORE "Name" All were executed together at once. In Firebird only one command can be entered and executed. Several commands: ALTER TABLE table_name ALTER field_name POSITION 1 ALTER TABLE table_name ALTER field_name2 POSITION 2 ALTER TABLE table_name ALTER field_name3 POSITION 3 or ALTER TABLE table_name ALTER field_name POSITION 1; ALTER TABLE table_name ALTER field_name2 POSITION 2; ALTER TABLE table_name ALTER field_name3 POSITION 3 or ALTER TABLE table_name ALTER field_name POSITION 1, ALTER TABLE table_name ALTER field_name2 POSITION 2, ALTER TABLE table_name ALTER field_name3 POSITION 3 result in this error message: *Token unknown - line 2, column 1 *ALTER caused by 'isc_dsql_prepare' It is time consuming to enter each command separately. Steps to Reproduce: 1. enter in Tools > SQL: ALTER TABLE table_name ALTER field_name POSITION 1 ALTER TABLE table_name ALTER field_name2 POSITION 2 ALTER TABLE table_name ALTER field_name3 POSITION 3 or ALTER TABLE table_name ALTER field_name POSITION 1; ALTER TABLE table_name ALTER field_name2 POSITION 2; ALTER TABLE table_name ALTER field_name3 POSITION 3 or ALTER TABLE table_name ALTER field_name POSITION 1, ALTER TABLE table_name ALTER field_name2 POSITION 2, ALTER TABLE table_name ALTER field_name3 POSITION 3 Actual Results: error message: *Token unknown - line 2, column 1 *ALTER caused by 'isc_dsql_prepare' Expected Results: 1: Reproducible: Always User Profile Reset: Yes Additional Info: no other info
Have tested this with the described command ALTER TABLE table_name ALTER field_name POSITION …; and also with INSERT INTO table_name (fieldname) VALUES(…); Could only execute one command. Delimiter ';' doesn't work in Firebird. Seems it is the same behavior in Firebid server connecting by JDBC. So could be a special Firebird bug? All tested with LO 7.3.2.2 on OpenSUSE 15.3 64bit rpm Linux.
Searching "firebird multiple statements", just wonder if it's possible in Firebird. I found an old link here: https://stackoverflow.com/questions/1698114/firebird-multiple-statements about "execute block" Also: https://firebirdsql.org/manual/migration-mssql-syntax.html
I have also searched for it. Seems it is a little bit confused: https://www.firebirdsql.org/pdfmanual/html/isql-terminator.html The terminator seems to be a ';' by default. But it won't run from Base …
Seems Firebird needs a special EXECUTE BLOCK for this: execute block as begin INSERT INTO "table" ("ID") VALUES(4); INSERT INTO "table" ("ID") VALUES(5); INSERT INTO "table" ("ID") VALUES(6); end will work here.
in Tools > SQL: execute block as begin ALTER TABLE "0base" ALTER "eL1" POSITION 1; ALTER TABLE "0base" ALTER "eL2" POSITION 2; ALTER TABLE "0base" ALTER "eL3" POSITION 3; end results in: 1: firebird_sdbc error: *Dynamic SQL Error *SQL error code = -104 *Token unknown - line 3, column 3 *ALTER caused by 'isc_dsql_prepare' each SQL command alone works.
Dear bugReportLOm, 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
We could change nothing with this bug. It isn't possible to send commands like ALTER TABLE in "execute block". It is a special Firebird behavior - not our bug.
this is caused by firebird and can not be solved by LO, see comment 7