From 4be822c6c918e02578b55947486d5a57784bea71 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Wed, 23 Mar 2011 18:13:37 +0200 Subject: Set QString to map to VARCHAR (56) NOT NULL by default in MySQL --- odb/qt/mysql/default-mapping.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1