View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
03908Bug reportsOtherpublic2010-05-05 10:28
Reporterrobin_sharp Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.85+ 
Summary03908: 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.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)7593
I will donate to the project if issue is resolved
BrowserFirefox 3.0.10
Database type & versionMySQL 5.1.30
Server OS (if known)Ubuntu
Webserver software & version (if known)Apache 2.2.11
PHP Version5.2.8

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2010-03-09 20:53

administrator   ~11263

Harsha, are you working on this?

harsha

harsha

2010-03-13 19:21

reporter   ~11333

Yes Casrten , in 1.87+ i am not seeing such an issue. Any Suggestions

c_schmitz

c_schmitz

2010-03-15 22:55

administrator   ~11378

harsha, you dumped the DB and imported it without problems?

c_schmitz

c_schmitz

2010-03-22 18:01

administrator   ~11471

Harsha, what is the status on this?

harsha

harsha

2010-03-22 19:07

reporter   ~11473

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.

c_schmitz

c_schmitz

2010-03-22 19:51

administrator   ~11475

They need to be text since varchar would be too small (they can contain several email addresses separated with a semikolon.

harsha

harsha

2010-03-23 03:02

reporter   ~11479

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 email as varchar(320).

Carten, so what would better i do in this case.

c_schmitz

c_schmitz

2010-03-23 10:24

administrator   ~11483

You should fix the export so that it properly exports right SQL for the keys.

harsha

harsha

2010-03-26 16:32

reporter   ~11515

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.

c_schmitz

c_schmitz

2010-03-27 00:10

administrator   ~11518

Harsha, in your patch you are changing the type of the email field.
So on import the DB will look different than before. Please talk to me.

harsha

harsha

2010-03-27 03:31

reporter   ~11519

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.

harsha

harsha

2010-03-27 10:22

reporter   ~11523

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.

harsha

harsha

2010-03-28 12:46

reporter   ~11529

Carsten, Thanks for the time took on this issue. I learnt lot

Issue History

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 user372 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)