Sequoia does not support INSERT INTO table DEFAULT VALUES syntax
----------------------------------------------------------------

         Key: SEQUOIA-909
         URL: https://forge.continuent.org/jira/browse/SEQUOIA-909
     Project: Sequoia
        Type: Bug
  Components: Core  
    Versions: Sequoia 3.0    
    Reporter: Guillaume Smet
    Priority: Minor
 Attachments: 909.InsertRequest.java.patch

As reported by Denis Garyachy in the Hibernate test cases results, Sequoia does 
not support DEFAULT VALUES syntax of INSERT queries:
Message of cause: Unknown table '' in this INSERT statement: 'insert into aaa 
default values'

See for example, the syntax of INSERT for PostgreSQL:
INSERT INTO table [ ( column [, ...] ) ]
    { DEFAULT VALUES | VALUES ( { expression | DEFAULT } [, ...] ) | query }
Note that the problem was initially reported by using SQL Server dialect of 
Hibernate.

I attached a patch to fix this problem. I explicitely put DEFAULT VALUES on the 
same level as VALUES and SELECT even if it's a bit redundant as they are 
completely different things.

--
Guillaume

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://forge.continuent.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia

Reply via email to