Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Multiple DUAL_UNIQUE generate conflicting statements
Multiple DUAL_UNIQUE generate conflicting statements [message #49869] Wed, 23 May 2018 11:36 Go to previous message
busiek is currently offline  busiek
Messages: 64
Registered: February 2011
Location: Poland
Member
This is a problem for PostgreSQL backend for sure.
TABLE(T)
    ...
    DUAL_UNIQUE(A, B)
    DUAL_UNIQUE(C, D)
END_TABLE

will generate A_script.sql containing:
...
alter table T add constraint DQ_T unique (A, B);
alter table T add constraint DQ_T unique (C, D);

Constraint names should be unique. The way to fix it is to add column names to the constraint name separated by some special symbol.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SQLite On delete cascade .sch ?
Next Topic: BOOL in SQLite
Goto Forum:
  


Current Time: Tue Apr 16 09:07:46 CEST 2024

Total time taken to generate the page: 0.01221 seconds