aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-02 15:58:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-02 15:58:39 +0200
commitd01ec34c62ebae294de49aea92bb0496188e28bb (patch)
treeb220da5c8d7401b888f47684af7169bc07b06525
parentce1d2e767f6318b22c464e4da86fd796e75401cc (diff)
Include default mapping in prologue instead of epilogue
This will allow the user to customize the mapping.
-rw-r--r--odb/qt/basic-mysql.options5
-rw-r--r--odb/qt/basic-pgsql.options5
-rw-r--r--odb/qt/basic-sqlite.options5
-rw-r--r--odb/qt/date-time-mysql.options5
-rw-r--r--odb/qt/date-time-pgsql.options5
-rw-r--r--odb/qt/date-time-sqlite.options5
6 files changed, 24 insertions, 6 deletions
diff --git a/odb/qt/basic-mysql.options b/odb/qt/basic-mysql.options
index adb3529..0be19f2 100644
--- a/odb/qt/basic-mysql.options
+++ b/odb/qt/basic-mysql.options
@@ -5,7 +5,10 @@
--profile qt/version
---odb-epilogue '#include <odb/qt/basic/mysql/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/basic/mysql/default-mapping.hxx>'
--hxx-prologue '#include <odb/qt/basic/mysql/qstring-traits.hxx>'
--hxx-prologue '#include <odb/qt/basic/mysql/qbyte-array-traits.hxx>'
diff --git a/odb/qt/basic-pgsql.options b/odb/qt/basic-pgsql.options
index 1940dc6..238bc42 100644
--- a/odb/qt/basic-pgsql.options
+++ b/odb/qt/basic-pgsql.options
@@ -5,7 +5,10 @@
--profile qt/version
---odb-epilogue '#include <odb/qt/basic/pgsql/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/basic/pgsql/default-mapping.hxx>'
--hxx-prologue '#include <odb/qt/basic/pgsql/qstring-traits.hxx>'
--hxx-prologue '#include <odb/qt/basic/pgsql/qbyte-array-traits.hxx>'
diff --git a/odb/qt/basic-sqlite.options b/odb/qt/basic-sqlite.options
index 4a5a082..7251482 100644
--- a/odb/qt/basic-sqlite.options
+++ b/odb/qt/basic-sqlite.options
@@ -5,7 +5,10 @@
--profile qt/version
---odb-epilogue '#include <odb/qt/basic/sqlite/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/basic/sqlite/default-mapping.hxx>'
--hxx-prologue '#include <odb/qt/basic/sqlite/qstring-traits.hxx>'
--hxx-prologue '#include <odb/qt/basic/sqlite/qbyte-array-traits.hxx>'
diff --git a/odb/qt/date-time-mysql.options b/odb/qt/date-time-mysql.options
index 02bebf7..8073903 100644
--- a/odb/qt/date-time-mysql.options
+++ b/odb/qt/date-time-mysql.options
@@ -5,7 +5,10 @@
--profile qt/version
---odb-epilogue '#include <odb/qt/date-time/mysql/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/date-time/mysql/default-mapping.hxx>'
--hxx-prologue '#include <odb/qt/date-time/mysql/qdate-traits.hxx>'
--hxx-prologue '#include <odb/qt/date-time/mysql/qtime-traits.hxx>'
diff --git a/odb/qt/date-time-pgsql.options b/odb/qt/date-time-pgsql.options
index a637b60..f7f86e5 100644
--- a/odb/qt/date-time-pgsql.options
+++ b/odb/qt/date-time-pgsql.options
@@ -5,7 +5,10 @@
--profile qt/version
---odb-epilogue '#include <odb/qt/date-time/pgsql/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/date-time/pgsql/default-mapping.hxx>'
--hxx-prologue '#include <odb/qt/date-time/pgsql/qdate-traits.hxx>'
--hxx-prologue '#include <odb/qt/date-time/pgsql/qtime-traits.hxx>'
diff --git a/odb/qt/date-time-sqlite.options b/odb/qt/date-time-sqlite.options
index c500499..750405c 100644
--- a/odb/qt/date-time-sqlite.options
+++ b/odb/qt/date-time-sqlite.options
@@ -5,7 +5,10 @@
--profile qt/version
---odb-epilogue '#include <odb/qt/date-time/sqlite/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/date-time/sqlite/default-mapping.hxx>'
--hxx-prologue '#include <odb/qt/date-time/sqlite/qdate-traits.hxx>'
--hxx-prologue '#include <odb/qt/date-time/sqlite/qtime-traits.hxx>'