aboutsummaryrefslogtreecommitdiff
path: root/odb/qt/basic/mysql/default-mapping.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-01-31 14:23:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-01-31 14:23:35 +0200
commit5ddc3cc84883aef3fbb5ab8991ad36c0185404ac (patch)
tree941810dcd31fae11fc42ad8065d24f600f36387d /odb/qt/basic/mysql/default-mapping.hxx
parent59387510848f11c688525892fdaaa4b93e6fa6e8 (diff)
Fix QString id mapping
Diffstat (limited to 'odb/qt/basic/mysql/default-mapping.hxx')
-rw-r--r--odb/qt/basic/mysql/default-mapping.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/qt/basic/mysql/default-mapping.hxx b/odb/qt/basic/mysql/default-mapping.hxx
index 492a30e..e22484b 100644
--- a/odb/qt/basic/mysql/default-mapping.hxx
+++ b/odb/qt/basic/mysql/default-mapping.hxx
@@ -9,11 +9,11 @@
#include <QtCore/QByteArray>
#include <QtCore/QUuid>
-// Map QString to MySQL TEXT for non-id and to VARCHAR(256) for id members.
+// Map QString to MySQL TEXT for non-id and to VARCHAR(255) for id members.
// MySQL cannot have primary key of the TEXT type. Allow NULL values by
// default as QString provides a null representation.
//
-#pragma db value(QString) type("TEXT") id_type("VARCHAR(256)") null
+#pragma db value(QString) type("TEXT") id_type("VARCHAR(255)") null
// Map QByteArray to MySQL BLOB by default. Allow NULL values by default as
// QByteArray provides a null representation.