Download & Extend

Make INSERT INTO syntax ANSI compliant

Project:Type-local nids
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:jbrown
Status:closed (fixed)

Issue Summary

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

Comments

#1

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

#3

Status:fixed» closed (fixed)

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