Home » U++ Library support » U++ SQL » Bugfix: MySql: Missing macros from schema
Bugfix: MySql: Missing macros from schema [message #43213] |
Sun, 08 June 2014 18:48 |
zsolt
Messages: 698 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
The diff:
-------------------------- uppsrc/MySql/MySqlSchema.h --------------------------
index de19eae..3316271 100644
@@ -65,16 +65,23 @@
#endif
#define TIMESTAMP(ts) SCHEMA("-- " ts "\n\n", NULL)
#define COMMENT(txt) SCHEMA("-- " #txt "\n", NULL)
#define INNODB TABLE_SUFFIX(" type=InnoDB")
+#define DUAL_PRIMARY_KEY(k1, k2) INLINE_ATTRIBUTE("primary key (" #k1 ", " #k2 ")")
+
+#define INDEX_LIST(u, l) ATTRIBUTE("create index IDXL_@t$" #u " on @t "\
+ "(" l ");",\
+ "drop index IDXL_@t$" #u ";")
+
+
#include <Sql/sch_model.h>
#undef INT
#undef INT_ARRAY
#undef INT_
#undef INT_ARRAY_
#undef INT64
@@ -116,13 +123,17 @@
#undef SQLDEFAULT
#undef INDEX
#undef UNIQUE
#undef DUAL_UNIQUE
#undef UNIQUE_LIST
+#undef DUAL_PRIMARY_KEY
+#undef INDEX_LIST
+
#undef REFERENCES
#undef TIMESTAMP
#undef COMMENT
|
|
|
Goto Forum:
Current Time: Mon May 13 12:12:24 CEST 2024
Total time taken to generate the page: 0.02516 seconds
|