Ticket #356 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Changing feed update property results in error with MySQL < 4.1

Reported by: adam@… Owned by: mbonetti
Priority: normal Milestone: Gregarius 0.5.5
Component: BUGS Version:
Severity: normal Keywords: mysql systemrequirements
Cc:

Description

As of svn revision 1312, when editing a feed and changing the "Allow Update" property on a system backed by MySQL 4.0 or earlier, a SQL error occurs...

Failed to execute the SQL query

insert into  properties (fk_ref_object_id, proptype, property, value) values ('186','feed','rss.input.allowupdates','b:0;') ON DUPLICATE KEY UPDATE value='b:0;'

Error 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE value='b:0;'' at line 1

INSERT ... ON DUPLICATE KEY was added in MySQL 4.1.

Either the code needs to be changed or the system requirements need to be updated to reflect MySQL 4.1 as the minimum required version.

Attachments

ANSI config patch.diff (1.8 kB) - added by adam@… 3 years ago.
Patch to make property updates conform to ANSI SQL

Change History

Changed 3 years ago by adam@…

Patch to make property updates conform to ANSI SQL

Changed 3 years ago by anonymous

  • status changed from new to closed
  • resolution set to fixed

in [1313]. Well spotted, Adam, thanks!

Note: See TracTickets for help on using tickets.