From ed9941ac5ed64407f5120eb80c1ef0da76c2977f Mon Sep 17 00:00:00 2001 From: Peinthor Rene Date: Fri, 29 Mar 2013 14:50:34 +0100 Subject: [PATCH] proper quote field names --- src/sqlitetypes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlitetypes.cpp b/src/sqlitetypes.cpp index 6d20b85b..bccfba53 100644 --- a/src/sqlitetypes.cpp +++ b/src/sqlitetypes.cpp @@ -11,7 +11,7 @@ QStringList Field::Datatypes = QStringList() << "INTEGER" << "TEXT" << "BLOB" << QString Field::toString(const QString& indent, const QString& sep) const { - QString str = indent + m_name + sep + m_type; + QString str = indent + '`' + m_name + '`' + sep + m_type; if(m_notnull) str += " NOT NULL"; if(!m_defaultvalue.isEmpty())