View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
06595 | Bug reports | Statistics | public | 2012-09-27 01:20 | 2012-10-09 22:39 |
Reporter | Assigned To | c_schmitz | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.92+ | ||||
Fixed in Version | 2.00+ | ||||
Summary | 06595: Data restore from oldsurvey... table returns ERROR: invalid input syntax for type double precision: "" | ||||
Description | Using a Postgres database, the data restore from an oldsurvey... table produces the error ERROR: invalid input syntax for type double precision: "" when the old_survey and survey tables contain a double precision column and null values in a data record. Instead of using a null value for the INSERT statement, the restore tool uses empty strings '' which causes the error. Double precision fields only accept strings in scientific number notation. I have a workaround of copying the data manually on a SQL command line using | ||||
Additional Information | It would be great to have a restore function for old token data as well. Also, when deactivating a survey data and tokens are archived in the old... tables. When reactivating the survey and initializing a new token table it would be great to have an option to reapply the custom attributes right there. The attribute definitions seem to be stored in the background, but one has to go to custom attribute management and enter the correct number of attributes for them to reappear. Along these lines, I haven't seen a function to remove custom attributes. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 120919 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | Postgres 8.3 | ||||
Server OS (if known) | Ubuntu | ||||
Webserver software & version (if known) | Apache 2.2.22 | ||||
PHP Version | 5.3.8 | ||||
Please attach the survey that is producing this error as .lss file. Thank you. |
|
Feedback please? |
|
Closed due to missing feedback. |
|
Was out. Attached the survey export. The field causing issues in the survey table is: "27464X164X1549" double precision |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=9683 |
|
2.00+ Build 121009 released. Please update. |
|
LimeSurvey: master f535bbbb 2012-10-09 14:32 Details Diff |
Fixed issue 06595: Data restore from old_survey_... table fails when using Postgres |
Affected Issues 06595 |
|
mod - application/controllers/admin/dataentry.php | Diff File | ||
mod - application/helpers/admin/import_helper.php | Diff File | ||
mod - application/helpers/database_helper.php | Diff File | ||
mod - application/helpers/frontend_helper.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-09-27 01:20 |
|
New Issue | |
2012-09-27 08:52 | c_schmitz | Note Added: 20837 | |
2012-09-27 08:52 | c_schmitz | Assigned To | => c_schmitz |
2012-09-27 08:52 | c_schmitz | Status | new => feedback |
2012-10-07 13:21 | c_schmitz | Note Added: 21104 | |
2012-10-09 13:56 | c_schmitz | Note Added: 21127 | |
2012-10-09 13:56 | c_schmitz | Status | feedback => closed |
2012-10-09 13:56 | c_schmitz | Resolution | open => unable to reproduce |
2012-10-09 15:45 |
|
Note Added: 21131 | |
2012-10-09 15:45 |
|
Status | closed => feedback |
2012-10-09 15:45 |
|
Resolution | unable to reproduce => reopened |
2012-10-09 15:45 |
|
File Added: grad_exit_survey_27464.lss | |
2012-10-09 15:47 |
|
Note Edited: 21131 | |
2012-10-09 21:32 | c_schmitz | Changeset attached | => LimeSurvey master f535bbbb |
2012-10-09 21:32 | c_schmitz | Note Added: 21136 | |
2012-10-09 21:32 | c_schmitz | Status | feedback => resolved |
2012-10-09 21:32 | c_schmitz | Fixed in Version | => 2.00+ |
2012-10-09 21:32 | c_schmitz | Resolution | reopened => fixed |
2012-10-09 22:39 | c_schmitz | Note Added: 21139 | |
2012-10-09 22:39 | c_schmitz | Status | resolved => closed |