| Summary: | Error while importing database with text primary key | ||
|---|---|---|---|
| Product: | [Applications] KEXI | Reporter: | Julien Tattevin <juluano> |
| Component: | Migration/Import/Export | Assignee: | Kexi Bugs <kexi-bugs> |
| Status: | CONFIRMED --- | ||
| Severity: | minor | CC: | staniek |
| Priority: | NOR | ||
| Version First Reported In: | 2.6.4 | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Bug Depends on: | 277435 | ||
| Bug Blocks: | |||
| Attachments: | Import debug output | ||
|
Description
Julien Tattevin
2011-01-27 01:05:03 UTC
Can you paste the debug output? Created attachment 56644 [details]
Import debug output
Trying to import a table created with :
CREATE TABLE IF NOT EXISTS `global_reg_value` (
`char_id` int(11) unsigned NOT NULL DEFAULT '0',
`str` varchar(255) NOT NULL DEFAULT '',
`account_id` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`char_id`,`str`,`account_id`),
KEY `account_id` (`account_id`),
KEY `char_id` (`char_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
The problem seem to be that it convert the varchar(255) to LONGTEXT The generated sql is : CREATE TABLE global_reg_value (char_id INT UNSIGNED PRIMARY KEY, str LONGTEXT PRIMARY KEY, account_id INT UNSIGNED PRIMARY KEY) (Which also bring another sql error with multiple key table) Depends on https://bugs.kde.org/show_bug.cgi?id=277435 Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved. |