We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 530a36d commit 978086bCopy full SHA for 978086b
src/providers/mssql/qgsmssqlprovider.cpp
@@ -305,13 +305,13 @@ QVariant::Type QgsMssqlProvider::DecodeSqlType( QString sqlTypeName )
305
}
306
else if ( sqlTypeName.startsWith( "date", Qt::CaseInsensitive ) )
307
{
308
- type = QVariant::String;
+ type = QVariant::Date;
309
310
else if ( sqlTypeName.startsWith( "datetime", Qt::CaseInsensitive ) ||
311
sqlTypeName.startsWith( "smalldatetime", Qt::CaseInsensitive ) ||
312
sqlTypeName.startsWith( "datetime2", Qt::CaseInsensitive ) )
313
314
+ type = QVariant::DateTime;
315
316
else if ( sqlTypeName.startsWith( "time", Qt::CaseInsensitive ) ||
317
sqlTypeName.startsWith( "timestamp", Qt::CaseInsensitive ) )
0 commit comments