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 » Bugfix: MySql: Missing macros from schema
Bugfix: MySql: Missing macros from schema [message #43213] Sun, 08 June 2014 18:48 Go to next message
zsolt is currently offline  zsolt
Messages: 697
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
Re: Bugfix: MySql: Missing macros from schema [message #43233 is a reply to message #43213] Wed, 11 June 2014 08:33 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, applied.
Previous Topic: Bugfix: DBF version handling fixed
Next Topic: Bugfix: MySqlConnection::GetRowsProcessed() returns correct value after an sql update
Goto Forum:
  


Current Time: Tue Apr 23 23:33:12 CEST 2024

Total time taken to generate the page: 0.01842 seconds