Make PostGIS provider correctly use time and datetime formats, instead of converting them to character

This commit is contained in:
Nyall Dawson 2014-03-26 09:12:51 +11:00
parent d8ad1d8861
commit 013f9e96a2

View File

@ -2788,7 +2788,13 @@ bool QgsPostgresProvider::convertField( QgsField &field )
break;
case QVariant::DateTime:
fieldType = "timestamp without time zone";
break;
case QVariant::Time:
fieldType = "time";
break;
case QVariant::String:
fieldType = "varchar";
fieldPrec = -1;