aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-03-23 18:13:37 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-03-23 18:13:37 +0200
commit4be822c6c918e02578b55947486d5a57784bea71 (patch)
tree0466011d068ad95729d327019e3164f40a73c7a6
parent616fdbae6bb41d91ce9682e9dd4a9347fd211852 (diff)
Set QString to map to VARCHAR (56) NOT NULL by default in MySQL
-rw-r--r--odb/qt/mysql/default-mapping.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/qt/mysql/default-mapping.hxx b/odb/qt/mysql/default-mapping.hxx
index 6d3be3b..6647bbd 100644
--- a/odb/qt/mysql/default-mapping.hxx
+++ b/odb/qt/mysql/default-mapping.hxx
@@ -10,6 +10,6 @@
// Map QString to MySQL TEXT by default.
//
-#pragma db value(QString) type("TEXT")
+#pragma db value(QString) type("VARCHAR(56) NOT NULL")
#endif // ODB_QT_MYSQL_DEFAULT_MAPPING_HXX