GEOMETRY in sql server

This commit is contained in:
Hamed.Masafi 2017-06-02 10:47:31 +04:30
parent 5757534f2a
commit e29f6bc9b5
2 changed files with 2 additions and 2 deletions

View File

@ -480,7 +480,7 @@ bool Database::open(bool updateDatabase)
if (p.trimmed().startsWith("driver="))
driverName = p.split('=').at(1).toLower().trimmed();
if (driverName == "{sql server}")
// if (driverName == "{sql server}")
d->sqlGenertor = new SqlServerGenerator(this);
// TODO: add ODBC driver for mysql, postgres, ...
}

View File

@ -73,7 +73,7 @@ QString SqlServerGenerator::fieldType(FieldModel *field)
case QVariant::Point:
case QVariant::PointF:
dbType = "point";
dbType = "GEOMETRY";
break;
case QVariant::String: