[Digikam-devel] [Bug 268204] MySQL filenames are case-INsensitive
Daniel Bauer
linux at daniel-bauer.com
Thu Mar 17 11:38:06 GMT 2011
https://bugs.kde.org/show_bug.cgi?id=268204
--- Comment #4 from Daniel Bauer <linux daniel-bauer com> 2011-03-17 12:38:05 ---
Hi, I just changed to collation of the whole table to utf8_bin, and it shows
all images
BUT
digikam shows problems when importing files containing "Umlaute" (ä, ö, ü) in
the file-name, eventually with other special characters, too (don't know). I
exportet my original "images" table, renamed it, and created a new images table
as follows:
CREATE TABLE IF NOT EXISTS `Images` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`album` int(11) DEFAULT NULL,
`name` longtext NOT NULL,
`status` int(11) NOT NULL,
`category` int(11) NOT NULL,
`modificationDate` datetime DEFAULT NULL,
`fileSize` int(11) DEFAULT NULL,
`uniqueHash` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `album` (`album`,`name`(332)),
KEY `dir_index` (`album`),
KEY `hash_index` (`uniqueHash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=63295 ;
I have no problems when using latin1 collation and charset on the filed "name":
CREATE TABLE IF NOT EXISTS `Images` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`album` int(11) DEFAULT NULL,
`name` longtext CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL,
`status` int(11) NOT NULL,
`category` int(11) NOT NULL,
`modificationDate` datetime DEFAULT NULL,
`fileSize` int(11) DEFAULT NULL,
`uniqueHash` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `album` (`album`,`name`(332)),
KEY `dir_index` (`album`),
KEY `hash_index` (`uniqueHash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
AUTO_INCREMENT=63295 ;
--------------
slightly off-topic:
why does field "album" allow NULL?
I have lots of entries in images with album name NULL.
Where do they come from?
I guess I can delete them???
--------------
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list