Skip to content
Permalink
Browse files

[ogr] Blacklist datetime field type for OGR provider

  • Loading branch information
m-kuhn committed Aug 27, 2013
1 parent 8d32ce9 commit a8a1090a34f6460626b7d0152c6d66ce5c6336a8
Showing with 9 additions and 3 deletions.
  1. +9 −3 src/providers/ogr/qgsogrprovider.cpp
@@ -356,9 +356,15 @@ QgsOgrProvider::QgsOgrProvider( QString const & uri )
<< QgsVectorDataProvider::NativeType( tr( "Whole number (integer)" ), "integer", QVariant::Int, 1, 10 )
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (real)" ), "double", QVariant::Double, 1, 20, 0, 15 )
<< QgsVectorDataProvider::NativeType( tr( "Text (string)" ), "string", QVariant::String, 1, 255 )
<< QgsVectorDataProvider::NativeType( tr( "Date" ), "date", QVariant::Date, 8, 8 )
<< QgsVectorDataProvider::NativeType( tr( "Date & Time" ), "datetime", QVariant::DateTime )
;
<< QgsVectorDataProvider::NativeType( tr( "Date" ), "date", QVariant::Date, 8, 8 );

// Some drivers do not support datetime type
// Please help to fill this list
if ( ogrDriverName != "ESRI Shapefile" )
{
mNativeTypes
<< QgsVectorDataProvider::NativeType( tr( "Date & Time" ), "datetime", QVariant::DateTime );
}
}

QgsOgrProvider::~QgsOgrProvider()

0 comments on commit a8a1090

Please sign in to comment.
You can’t perform that action at this time.