Skip to content
Permalink
Browse files
Make PostGIS provider correctly use time and datetime formats, instea…
…d of converting them to character
  • Loading branch information
nyalldawson committed Mar 25, 2014
1 parent d8ad1d8 commit 013f9e9
Showing 1 changed file with 6 additions and 0 deletions.
@@ -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;

0 comments on commit 013f9e9

Please sign in to comment.