View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
03756 | Bug reports | Survey editing | public | 2009-10-09 10:36 | 2009-11-09 14:11 |
Reporter | Assigned To | jcleeland | |||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | unable to reproduce | ||
Product Version | 1.86 | ||||
Summary | 03756: SQL error messages when trying to update start or expiry date | ||||
Description | When I create a new survey and edit the start a/o expiry date afterwards, I get this error message: Error updating FEHLER: Syntaxfehler bei »=« LINE 1: UPDATE SET STARTDATE='2009-10-09 12:00:00', EXPIRES='2009-1... ^ "FEHLER: Syntaxfehler bei" means "ERROR: Syntax error at". | ||||
Tags | No tags attached. | ||||
Attached Files | database.diff (429 bytes)
1098,1107c1098,1099 < < $usquery=$connect->GetUpdateSQL($rs, $updatearray); < < // Workaround - sometimes you get an invalid SQL query string when using PSQL as your database < $tokens = split(" ", $usquery); < if ($tokens[1] == "") { < $tokens[1] = db_table_name('surveys'); < $usquery = implode(" ", $tokens); < } < --- > > $usquery=$connect->GetUpdateSQL($rs, $updatearray); | ||||
Bug heat | 14 | ||||
Complete LimeSurvey version number (& build) | 7697 | ||||
I will donate to the project if issue is resolved | |||||
Browser | Firefox | ||||
Database type & version | PostgreSQL 8.3.8 | ||||
Server OS (if known) | Linux | ||||
Webserver software & version (if known) | Apache | ||||
PHP Version | 5.2.6 | ||||
I can't reproduce the issue on MySQL. |
|
in order to check i had to update my db... Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/tim/htdocs/limesource/limesurvey/admin/update/upgrade-postgres.php on line 186 haha... |
|
I cannot reproduce this with 1.87beta nor with 1.85+ I have no 1.86 version in my testenviroment right now... ??? strange... the SQL Expression is totally correct, I can perform it as a query over pgAdmin and I does the changes without a hitch. Only thing I can think of, is an old table or somehow missing fields in the Table. |
|
Hi, I made a fresh install of the current build today and the error remains. |
|
"UPDATE SET STARTDATE='2011-12-09 12:00:00', EXPIRES='2014-12-09 12:00:00', ADDITIONAL_LANGUAGES='de ' WHERE sid=18313" It seems to be a general problem. When I try to add an additional language to the survey it generates the same error. |
|
Hi, After further investigation of the problem I created a workaround for it. The diff-file is attached to the report. |
|
Reminder sent to: jcleeland Hi Jason, do you think your latest fix (03784) in rev. 7767 also solved that issue? |
|
@Jason, do you think your latest fix (03784) in rev. 7767 also solved that issue? |
|
I talked to gju on IRC and he pointed out that it might be a postgres - AdoDB problem. Can you add some more information, gju? |
|
Hmmm. I've just tested the bug on my postgres installation and am unable to reproduce it. This could be because of my fix 03784, or it could be some other reason. Looking at the error message "SYNTAX ERROR", and the apparent SQL querys ("UPDATE SET STARTDATE='2011-12-09 12:00:00', EXPIRES='2014-12-09 12:00:00', ADDITIONAL_LANGUAGES='de ' WHERE sid=18313") I don't know if anyone else noticed, but there is no table name after the UPDATE statement. Shouldn't it say "UPDATE surveys SET..."? Anyway, the weird date formatting was causing the MySQL bug, so I think it's worth trying this with my fix before we continue. Jason |
|
Hey, I did some more research on the problem yesterday and found out that the error I get is caused by the adodb library. It always returns an empty string for the table name wich then leads to the wrong query string. I tried defining the constant with an other name right before the sql string gets parsed and it worked perfectly ok... so my resume is that either the constant gets redefined somehwere (wich I also checked but didn't find anything) or there is a problem when adodb-lib gets included into adodb.inc.php. |
|
Given that the only person who is able to reproduce this bug is gju, I'm not sure what we should do next. If a bug can't be confirmed on a seperate installation, it can't really be fixed. Both myself and rakete tested the bug on seperate postgresql installations and weren't able to reproduce it. I think we should close the bug. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2009-10-09 10:36 |
|
New Issue | |
2009-10-09 10:36 |
|
Status | new => assigned |
2009-10-09 10:36 |
|
Assigned To | => user372 |
2009-10-09 10:36 |
|
LimeSurvey build number | => 7697 |
2009-10-09 10:36 |
|
Browser | => Firefox |
2009-10-09 10:36 |
|
Database & DB-Version | => PostgreSQL 8.3.8 |
2009-10-09 10:36 |
|
Operating System (Server) | => Linux |
2009-10-09 10:36 |
|
Webserver | => Apache |
2009-10-09 10:36 |
|
PHP Version | => 5.2.6 |
2009-10-09 13:47 |
|
Note Added: 09755 | |
2009-10-09 13:47 |
|
Assigned To | user372 => rakete |
2009-10-09 14:23 | rakete | Note Added: 09756 | |
2009-10-09 14:46 | rakete | Note Added: 09757 | |
2009-10-09 14:46 | rakete | Status | assigned => feedback |
2009-10-12 10:31 |
|
Note Added: 09782 | |
2009-10-12 11:06 |
|
Note Added: 09783 | |
2009-10-20 14:58 | Mazi | Relationship added | related to 03784 |
2009-10-20 15:32 |
|
Note Added: 09824 | |
2009-10-20 15:33 |
|
File Added: database.diff | |
2009-10-20 15:33 |
|
Note Edited: 09824 | |
2009-10-20 21:50 |
|
Issue Monitored: jcleeland | |
2009-10-20 21:50 |
|
Note Added: 09828 | |
2009-10-20 22:00 | lemeur | Status | feedback => assigned |
2009-10-20 22:00 | lemeur | Assigned To | rakete => jcleeland |
2009-10-20 22:01 | lemeur | Note Added: 09829 | |
2009-10-20 23:37 | Mazi | Note Added: 09836 | |
2009-10-20 23:37 | Mazi | Status | assigned => feedback |
2009-10-21 01:34 | jcleeland | Note Added: 09837 | |
2009-10-21 13:19 |
|
Note Added: 09845 | |
2009-11-09 14:11 | jcleeland | Note Added: 10025 | |
2009-11-09 14:11 | jcleeland | Status | feedback => closed |
2009-11-09 14:11 | jcleeland | Resolution | open => unable to reproduce |
2010-10-25 00:17 | c_schmitz | Category | Survey Design => Survey design |
2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |
2021-08-04 23:49 | guest | Bug heat | 12 => 14 |