Home » U++ Library support » U++ SQL » SQLite Schema Bugfix
SQLite Schema Bugfix [message #24318] |
Sun, 10 January 2010 18:29 |
zsolt
Messages: 697 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: Fri Apr 26 00:20:33 CEST 2024
Total time taken to generate the page: 0.02414 seconds
|