proper quote field names

This commit is contained in:
Peinthor Rene
2013-03-29 14:50:34 +01:00
parent 6b7361a6d6
commit ed9941ac5e

View File

@@ -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())