View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
03487Bug reportsOtherpublic2009-08-24 22:27
Reporteruser4228Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.85+ 
Fixed in Version1.85+ 
Summary03487: NULL database values for start/expiry dates are not exported correctly
Description

Hi,
I wanted to bulk-edit some survey questions using vim. None of my surveys had a start or expirty date set.

I used the "backup entire database" feature to export an sql dump to my PC and do the edits. However, when I re-imported the database using phpmyadmin none of the surveys was accessible. I spotted the problem in the start/expiry dates which now were set to 1999.

I checked the sql dump and I realized that the NULL database values were represented as "" in the dump. This is interpreted as time-0 during importing. I changed "" with NULL in the dump, re-imported and everything was fine again.

Additional Information

I am not sure if the described problem only affects the entries of the surveys table (where I spotted it) or it also applies to other tables as well. My guess is that it is probably a bug in the export functionality, so it will apply to all NULL values in date table fields.

TagsNo tags attached.
Bug heat0
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & versionMySQL 5
Server OS (if known)Linux 2.6
Webserver software & version (if known)Apache
PHP VersionPHP 5.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2009-07-16 16:44 user4228 New Issue
2009-07-16 16:44 user4228 Status new => assigned
2009-07-16 16:44 user4228 Assigned To => user372
2009-07-16 16:44 user4228 Database & DB-Version => MySQL 5
2009-07-16 16:44 user4228 Operating System (Server) => Linux 2.6
2009-07-16 16:44 user4228 Webserver => Apache
2009-07-16 16:44 user4228 PHP Version => PHP 5.1
2009-07-16 20:06 user372 Assigned To user372 => jcleeland
2009-08-20 09:56 c_schmitz Assigned To jcleeland => c_schmitz
2009-08-23 23:55 c_schmitz Status assigned => resolved
2009-08-23 23:55 c_schmitz Fixed in Version => 1.85+
2009-08-23 23:55 c_schmitz Resolution open => fixed
2009-08-24 22:27 c_schmitz Status resolved => closed
2010-05-06 10:27 c_schmitz Category Import / Export => (No Category)