MySQL specify quotes

Sweetchack - November 10, 2008 - 20:34
Project:API
Version:HEAD
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:duplicate
Description

warning: pg_query(): Query failed: ERROR: syntax error at or near "`" LINE 1: ...function (did, signature, start_line, parameters, `return`)

user warning: query: INSERT INTO api_function (did, signature, start_line, parameters, `return`) VALUES (5, 'example_element_menu($may_cache)', 32, '', '') in /home/sweetchack/.../modules/api/parser.inc on line 429.

This patch solve the problem, but not professional.

AttachmentSize
api_function-return.patch2.46 KB

#1

drumm - December 26, 2008 - 23:29
Status:needs review» duplicate

This is much more cumbersome than renaming the column. #332576: 'return' is reserved word in PostgreSQL

 
 

Drupal is a registered trademark of Dries Buytaert.