Home » U++ Library support » U++ SQL » SQLite Schema Bugfix
SQLite Schema Bugfix [message #24318] |
Sun, 10 January 2010 18:29  |
zsolt
Messages: 702 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
In Sqlite2Schema.h DUAL_UNIQUE and UNIQUE_LIST definitions are not for sqlite, I think.
The correct definitions would be:
#define DUAL_UNIQUE(k1, k2) ATTRIBUTE("create unique index DQ_@t$" #k1 #k2 " on @t "\
"(" #k1 ", " #k2 ");",\
"drop index DQ_@t$" #k1 #k2 ";")
#define UNIQUE_LIST(u, l) ATTRIBUTE("create unique index DQ_@t$" #u " on @t "\
"(" l ");",\
"drop index UQ_@t$" #u ";")
|
|
|
Goto Forum:
Current Time: Sun Apr 27 10:45:07 CEST 2025
Total time taken to generate the page: 0.00938 seconds
|