mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
proper quote field names
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user