GEOMETRY in sql server
This commit is contained in:
parent
5757534f2a
commit
e29f6bc9b5
|
|
@ -480,7 +480,7 @@ bool Database::open(bool updateDatabase)
|
||||||
if (p.trimmed().startsWith("driver="))
|
if (p.trimmed().startsWith("driver="))
|
||||||
driverName = p.split('=').at(1).toLower().trimmed();
|
driverName = p.split('=').at(1).toLower().trimmed();
|
||||||
|
|
||||||
if (driverName == "{sql server}")
|
// if (driverName == "{sql server}")
|
||||||
d->sqlGenertor = new SqlServerGenerator(this);
|
d->sqlGenertor = new SqlServerGenerator(this);
|
||||||
// TODO: add ODBC driver for mysql, postgres, ...
|
// TODO: add ODBC driver for mysql, postgres, ...
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ QString SqlServerGenerator::fieldType(FieldModel *field)
|
||||||
|
|
||||||
case QVariant::Point:
|
case QVariant::Point:
|
||||||
case QVariant::PointF:
|
case QVariant::PointF:
|
||||||
dbType = "point";
|
dbType = "GEOMETRY";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case QVariant::String:
|
case QVariant::String:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue