diff --git a/src/sqlitetypes.cpp b/src/sqlitetypes.cpp index db41a6e5..da26a4a4 100644 --- a/src/sqlitetypes.cpp +++ b/src/sqlitetypes.cpp @@ -15,7 +15,7 @@ QString Field::toString(const QString& indent, const QString& sep) const if(m_notnull) str += " NOT NULL"; if(!m_defaultvalue.isEmpty()) - str += " DEFAULT " + m_defaultvalue; + str += QString(" DEFAULT '%1'").arg(m_defaultvalue); if(!m_check.isEmpty()) str += " CHECK(" + m_check + ")"; if(m_autoincrement)