Created attachment 144590 [details] A simple database for testing macOS High Sierra 10.13.6 Example: I have a table with records 1-30 with the primary key AutoValue set to Yes. I delete records 16-30. I don't want the next record I add to have a primary key of 31. To reset this, I go to Tools > SQL and type in alter table TABLE_NAM alter FIELD_NAME restart with 15; All is well, and I am able to add new records without a gap in the primary key sequence. However, if I again delete some records and try to execute this SQL statement again, I receive the following error message: 1: firebird_sdbc error: *violation of PRIMARY or UNIQUE KEY constraint "INTEG_1" on table "TABLE_NAM" caused by 'alter table "TABLE_NAM" alter "FIELD_NAME" restart with NNNN;' (NNNN being whatever number I input in my second attempt at restarting the sequence.) The funny thing is, despite the error message, Base will do as I directed and restart the sequence once again. Attached is the database I was using.
I get the following error message 1: firebird_sdbc error: *Dynamic SQL Error *SQL error code = -104 *Token unknown - line 1, column 42 *"Employee ID" caused by 'isc_dsql_prepare' when using Version: 6.2.0.0.alpha0+ Build ID: b8658c0e847afe1ed199c5fa7a2dd5d1d61ccbac CPU threads: 4; OS: Mac OS X 10.13.6; UI render: default; Locale: fr-FR (fr_FR.UTF-8); Calc: threaded and the SQL command: ALTER TABLE "Employee Table" ALTER FIELD "Employee ID" RESTART WITH 16
Sorry, my bad, I misread the SQL statement. Retrying with the correct expression, I can reproduce this. Confirming
(In reply to Alex Thurgood from comment #2) > Sorry, my bad, I misread the SQL statement. Retrying with the correct > expression, I can reproduce this. > > Confirming and what's the correct expression ?
alter table "Employee Table" alter "Employee ID" restart with 15;
Dear kam3don, 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 http://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://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Created attachment 155164 [details] a small example base with macro
I just tried this Sunday, 20/10/2019 and the bug is still present. Cordially I use LibreOffice : Version: 6.2.7.1 (x64) Build ID: 23edc44b61b830b7d749943e020e96f5a7df63bf Threads CPU : 4; OS : Windows 10.0; UI Render : par défaut; VCL: win; Locale : fr-FR (fr_FR); Langue IHM : fr-FR Calc: CL
On pc Debian x86-64 with LO Debian package 7.0.3, I don't reproduce this. Here are the steps: - opened table - deleted 16->end - closed table - launched in SQL Tools: alter table "Employee Table" alter "Employee ID" restart with 15; - opened table - added row -> id = 16 => ok - deleted new row + row before - launched in SQL Tools: alter table "Employee Table" alter "Employee ID" restart with 14 -> id = 15 => ok Any update with LO 7.0.3? Also with a daily build of master (future 7.2.0) since Firebird has been upgraded from 3.0.0 to 3.0.7 Did I miss something?
Dear kam3don, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Could see the same buggy behavior in LO 7.1.3.2 on OpenSUSE 15.2 64bit rpm Linux: 1. Delete the rows up to last "Employee ID" 20 2. SQL: ALTER TABLE "Employee Table" ALTER "Employee ID" RESTART WITH 20 3. Input some new values (Funny: Trying to input new values will set every new character to a new line - another bug?) 4. Delete the rows up to last "Employee ID" 18 5. SQL: ALTER TABLE "Employee Table" ALTER "Employee ID" RESTART WITH 18 A warning appears like *violation of PRIMARY or UNIQUE KEY constraint "INTEG_18" on … … but the "Employees ID" will be restarted right.
Info is given in comment 10, so I set this back to "NEW"
I gave a new try on pc Debian x86-64 with master sources updated today with the first file and comment 10. Sometimes I got this error: "*Cursor is not open caused by 'isc_dsql_fetch'" that I don't understand but never had the one indicated in the bugtracker. Can't help here=>uncc myself.
Dear kam3don, 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
Couldn't reproduce the buggy behavior any more with Version: 7.6.3.1 (X86_64) / LibreOffice Community Build ID: c4af5b1259bceea6e979e6fe2435dbee7a5a87c2 CPU threads: 6; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb) Locale: de-DE (de_DE.UTF-8); UI: de-DE Calc: threaded I will set this one to WORKSFORME. Feel free to reopen if it could be reproduced on other systems.