Make INSERT INTO syntax ANSI compliant

thekevinday - September 21, 2009 - 18:09
Project:Type-local nids
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:jbrown
Status:closed
Description

You have probably copied the UPDATE .. SET .. syntax for the INSERT INTO .. syntax.
The valid SQL syntax is actually different.

You need to use INSERT INTO (..) VALUES (..)

See: http://www.w3schools.com/SQL/sql_insert.asp

I have attached a patch that fixes this where I have noticed the problem.

AttachmentSize
type_local_nids-sql_syntax_fix-1.patch581 bytes

#1

jbrown - September 22, 2009 - 17:57
Title:invalid SQL insert into syntax» Make INSERT INTO syntax ANSI compliant
Version:6.x-1.3» 6.x-1.x-dev
Category:bug report» task
Priority:critical» normal
Assigned to:Anonymous» jbrown
Status:active» fixed

I guess this should work on postgres now. :-)

#2

jbrown - September 22, 2009 - 17:58

#3

System Message - October 6, 2009 - 18:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.