|
[bug #6242] Failed to update entry when more than one key columns: msg#00614web.phpgroupware.tracker
=================== BUG #6242: FULL BUG SNAPSHOT =================== http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6242&group_id=509 Submitted by: Caeies Project: phpGroupWare Submitted on: Thu 10/30/03 at 12:24 Category: eTemplates Bug Group: 0.9.16RC1 Severity: 5 - Major Priority: Normal Resolution: None Assigned to: None Status: Open Component Version: CVS Platform Version: Linux - Debian Reproducibility: Every Time Summary: Failed to update entry when more than one key columns Original Submission: in the file etemplate/inc/class.so_sql.inc.php, look at line 329 there is a $key.=($keys ? ',':'')."$db_col='".addslashes($this->data[$col])."'"; and after (line 331), $this->db->query($sql = "UPDATE $this->table_name SET $vals WHERE $keys",__LINE__,__FILE__); This is perhaps a c&p mistake, but we must change tthe line 329 to : $keys .= ($keys ? 'AND':'') . "$db_col='".addslashes($this->data[$col])."'"; If not, you won't be able to update an entry with more than one key column. This is the message from MYSQL : Database error: Invalid SQL: UPDATE picoget_carto_s SET nom='Internet et Web' WHERE sousapp='2',application='1',discipline='1' MySQL 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 'application='1',discipline='1'' at line 1) File: etemplate/inc/class.so_sql.inc.php Line: 331 No Followups Have Been Posted CC list is empty No files currently attached For detailed info, follow this link: http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6242&group_id=509 _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [patch #2173] [Patch #2173] Holidays: FR: 00614, noreply |
|---|---|
| Next by Date: | [bug #6242] Failed to update entry when more than one key columns: 00614, nobody |
| Previous by Thread: | [patch #2173] [Patch #2173] Holidays: FRi: 00614, noreply |
| Next by Thread: | [bug #6242] Failed to update entry when more than one key columns: 00614, nobody |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |