https://bugs.kde.org/show_bug.cgi?id=286492
Summary: Two triggers applied for the same table - not supported by MySQL Product: digikam Version: 2.3.0 Platform: Ubuntu Packages OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: NOR Component: Database AssignedTo: [hidden email] ReportedBy: [hidden email] Version: 2.3.0 (using KDE 4.7.2) OS: Linux DDL on SQLite: CREATE TRIGGER delete_tag DELETE ON Tags BEGIN DELETE FROM ImageTags WHERE tagid=OLD.id; DELETE FROM TagProperties WHERE tagid=OLD.id; DELETE FROM ImageTagProperties WHERE tagid=OLD.id; END; CREATE TRIGGER delete_tagstree DELETE ON Tags BEGIN DELETE FROM Tags WHERE id IN (SELECT id FROM TagsTree WHERE pid=OLD.id); DELETE FROM TagsTree WHERE id IN (SELECT id FROM TagsTree WHERE pid=OLD.id); DELETE FROM TagsTree WHERE id=OLD.id; END; This is not supported by MySQL Reproducible: Didn't try Steps to Reproduce: Install a new SQLite and export the DDL Actual Results: This possibly impairs the SQLite => MySQL migration Expected Results: Don't know - I upgraded from an older installation Merge the two triggers into one -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
https://bugs.kde.org/show_bug.cgi?id=286492
Gilles Caulier <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Two triggers applied for |MYSQL : two triggers |the same table - not |applied for the same table |supported by MySQL |- not supported by database -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Ignatius Reilly
https://bugs.kde.org/show_bug.cgi?id=286492
Francesco Riosa <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|MYSQL : two triggers |SQLITE : two triggers |applied for the same table |applied for the same table |- not supported by database |- not supported by database --- Comment #1 from Francesco Riosa <francesco+kde pnpitalia it> 2011-12-19 00:30:17 --- Actually mysql has only one trigger on `tags` (well it's present two times but it's the same). Sqlite version of the sql is indeed affected, I don't know how it will react to this. -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Ignatius Reilly
https://bugs.kde.org/show_bug.cgi?id=286492
--- Comment #2 from Francesco Riosa <francesco+kde pnpitalia it> 2011-12-19 00:32:05 --- ignitus.reily for your interest mysql code start at <database name="QMYSQL"> tag in dbconfig.xml -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Ignatius Reilly
https://bugs.kde.org/show_bug.cgi?id=286492
Gilles Caulier <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Database |Database-Sqlite -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Ignatius Reilly
https://bugs.kde.org/show_bug.cgi?id=286492
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Database-Sqlite |Database-Migration Summary|SQLITE : two triggers |MIGRATION : two SQLITE |applied for the same table |triggers applied for the |- not supported by database |same table is not supported | |by MySQL database -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Ignatius Reilly
https://bugs.kde.org/show_bug.cgi?id=286492
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[hidden email] --- Comment #3 from [hidden email] --- Swati, What about this file ? It still valid ? If yes, the schema must be patched to fix this problem. Gilles Caulier -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Ignatius Reilly
https://bugs.kde.org/show_bug.cgi?id=286492
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|minor |normal -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Ignatius Reilly
https://bugs.kde.org/show_bug.cgi?id=286492
Mattia <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[hidden email] --- Comment #4 from Mattia <[hidden email]> --- I don't know if I hit the same problem, but I get an error trying to migrate SQLite to an external MySQL database (no details are showed). So, yes, I think this file is still valid. Additionally, I can't even set up a new empty database, I think for the same problem. Creation and migration both errors out in the middle of the task. Using Digikam 5.0.0 and MariaDB 5.5.44 -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Ignatius Reilly
https://bugs.kde.org/show_bug.cgi?id=286492
--- Comment #5 from [hidden email] --- To setup a Mariadb/Mysql database on a remote server, you must follow the requirements listed in DK/Setup/Database tab. It's very important. Following this rules, i can setup a DB in a Linux host computer and use it in digiKam client from Linux, OSX, or Windows. The migration is another subject, but it depend of a correct remote DB init. Gilles Caulier -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Ignatius Reilly
https://bugs.kde.org/show_bug.cgi?id=286492
--- Comment #6 from Mattia <[hidden email]> --- (In reply to caulier.gilles from comment #5) > To setup a Mariadb/Mysql database on a remote server, you must follow the > requirements listed in DK/Setup/Database tab. It's very important. > > Following this rules, i can setup a DB in a Linux host computer and use it > in digiKam client from Linux, OSX, or Windows. > > The migration is another subject, but it depend of a correct remote DB init. > > Gilles Caulier I tried with another server running MariaDB 10.1.14 and it's working. I think MariaDB 5.5.44 running on my Qnap NAS it's just too old... -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Ignatius Reilly
https://bugs.kde.org/show_bug.cgi?id=286492
--- Comment #7 from [hidden email] --- Swati, What about this file ? It still valid ? If yes, the schema must be patched to fix this problem. Gilles Caulier -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Free forum by Nabble | Edit this page |