Issue (View Online)

Key: NXP-707
Issue Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Thierry Delprat
Reporter: Damien Metzler
Environment: Windows XP
Jboss 4.0.4.GA
Nuxeo 5 trunk

Operations

View all
View comments
View history
Directories SQL syntax only works with HSQL 
Updated: 04/03/07 21:58   Created: 04/03/07 19:06  

The following comment has been added to this issue: [ Permlink ]

Author: Olivier Grisel
Date: 04/03/07 21:58
Comment:
Note: the IF EXISTS extension is not standard and was only introduced as of version 8.2 in postgresql.

Not using the IF EXISTS extension makes the transaction fail under postgres. I am not sure whether directory init is run as a single transaction or not by default though.

Anyway, using DROP TABLE IF EXISTS is still better than DROP TABLE continent IF EXISTS.

Project: Nuxeo Enterprise Platform 5
Components: Directory

 Description   
The directories definition in Nuxeo 5 always use this syntax :

DROP TABLE continent IF EXISTS;

This syntax doesn't work in PostGres and should be written like this :

DROP TABLE IF EXISTS continent ;

It also work in HSQL and MySQL. It should be better to use the las t syntax since the migration towards Postgres needs to override those files.

This message was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.7.2-186 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to