View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
03908 | Bug reports | Other | public | 2009-11-26 18:25 | 2010-05-05 10:28 |
Reporter | robin_sharp | Assigned To | c_schmitz | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.85+ | ||||
Summary | 03908: DB dump file not quite in standard MySQL | ||||
Description | A DB dumped using the limesurvey database dump facility under MySQL contains two table definitions with fields 'email' which are defined as having type 'text', but which are used as keys. This is not allowed in MySQL, where keys must have a maximum length. To reload the database I redefined these fields as having a varchar type (I chose varchar(128); maybe a larger size would be safer). Probably there are other workarounds which would enable the dump to be reloaded via MySQL. | ||||
Tags | No tags attached. | ||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 7593 | ||||
I will donate to the project if issue is resolved | |||||
Browser | Firefox 3.0.10 | ||||
Database type & version | MySQL 5.1.30 | ||||
Server OS (if known) | Ubuntu | ||||
Webserver software & version (if known) | Apache 2.2.11 | ||||
PHP Version | 5.2.8 | ||||
Harsha, are you working on this? |
|
Yes Casrten , in 1.87+ i am not seeing such an issue. Any Suggestions |
|
harsha, you dumped the DB and imported it without problems? |
|
Harsha, what is the status on this? |
|
Carsten , Sorry for the delay on this, actually i forgot this. Now i checked again and found out the issue is there. It is indeed better convert them to varchar (http://forums.mysql.com/read.php?24,105964,105964 ) for performance perspective as well.I will look into this. |
|
They need to be text since varchar would be too small (they can contain several email addresses separated with a semikolon. |
|
Ok , those tables having text email definitions are lime_old_tokens_49128_20100322225507 and lime_old_tokens_49128_20100322225619 (All are the old token tables). but at some points (lime_surveys , lime_saved_control) it is defined Carten, so what would better i do in this case. |
|
You should fix the export so that it properly exports right SQL for the keys. |
|
Carsten , for the raw tables there is no such issue at all as all the email fields are defined as varchar but for the token tables generated on the fly contain text definitions. So i made it correct. Please have a look. |
|
Harsha, in your patch you are changing the type of the email field. |
|
Exactly , that was my previous problem. Yes without changing to varchar(320) we can do Text(xxx).Is it better ? In that case can u suggest me a suitable length for the field. |
|
i did try with Text(320) but no success. Same issue as before, it does not allow to import correctly. By changing them to varchar it works fine. So Carsten what should i do. |
|
Carsten, Thanks for the time took on this issue. I learnt lot |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2009-11-26 18:25 | robin_sharp | New Issue | |
2009-11-26 18:25 | robin_sharp | Status | new => assigned |
2009-11-26 18:25 | robin_sharp | Assigned To | => user372 |
2009-11-26 18:25 | robin_sharp | LimeSurvey build number | => 7593 |
2009-11-26 18:25 | robin_sharp | Browser | => Firefox 3.0.10 |
2009-11-26 18:25 | robin_sharp | Database & DB-Version | => MySQL 5.1.30 |
2009-11-26 18:25 | robin_sharp | Operating System (Server) | => Ubuntu |
2009-11-26 18:25 | robin_sharp | Webserver | => Apache 2.2.11 |
2009-11-26 18:25 | robin_sharp | PHP Version | => 5.2.8 |
2009-11-27 08:01 |
|
Assigned To | user372 => jcleeland |
2010-01-27 23:38 | c_schmitz | Assigned To | jcleeland => harsha |
2010-03-09 20:53 | c_schmitz | Note Added: 11263 | |
2010-03-13 19:21 | harsha | Note Added: 11333 | |
2010-03-15 22:55 | c_schmitz | Note Added: 11378 | |
2010-03-22 18:01 | c_schmitz | Note Added: 11471 | |
2010-03-22 19:07 | harsha | Note Added: 11473 | |
2010-03-22 19:51 | c_schmitz | Note Added: 11475 | |
2010-03-23 03:02 | harsha | Note Added: 11479 | |
2010-03-23 10:24 | c_schmitz | Note Added: 11483 | |
2010-03-26 16:26 | harsha | File Added: dumpdb.patch | |
2010-03-26 16:32 | harsha | Note Added: 11515 | |
2010-03-27 00:10 | c_schmitz | Note Added: 11518 | |
2010-03-27 03:31 | harsha | Note Added: 11519 | |
2010-03-27 10:22 | harsha | Note Added: 11523 | |
2010-03-27 10:22 | harsha | Assigned To | harsha => c_schmitz |
2010-03-27 10:22 | harsha | Status | assigned => feedback |
2010-03-27 15:44 | harsha | File Deleted: dumpdb.patch | |
2010-03-27 15:45 | harsha | File Added: dumpdb.patch | |
2010-03-28 12:46 | harsha | Note Added: 11529 | |
2010-03-28 12:46 | harsha | Status | feedback => resolved |
2010-03-28 12:46 | harsha | Resolution | open => fixed |
2010-04-13 16:26 | harsha | File Deleted: dumpdb.patch | |
2010-05-05 10:28 | c_schmitz | Status | resolved => closed |
2010-05-06 10:27 | c_schmitz | Category | Import / Export => (No Category) |