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
Re: Multiple DUAL_UNIQUE generate conflicting statements [message #52084 is a reply to message #52066] Wed, 17 July 2019 10:42 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, applied, with a small addition:

#define DUAL_UNIQUE(k1, k2)        ATTRIBUTE("alter table @t add constraint DQ_@t$" #k1 "$" #k2 " unique "\
                                             "(" #k1 ", " #k2 ");",\
                                             "alter table @t drop constraint DQ_@t$" #k1 "$" #k2 ";")
 
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: Mon Apr 29 19:42:50 CEST 2024

Total time taken to generate the page: 0.03911 seconds