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 013f9e96a24ebca1e06dd0c90baa46ccf35ac5aa
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/providers/postgres/qgspostgresprovider.cpp
@@ -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.
You can’t perform that action at this time.