Skip to content


Make PostGIS provider correctly use time and datetime formats, instea…
Browse files Browse the repository at this point in the history
…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.
6 changes: 6 additions & 0 deletions src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2788,7 +2788,13 @@ bool QgsPostgresProvider::convertField( QgsField &field )

case QVariant::DateTime:
fieldType = "timestamp without time zone";

case QVariant::Time:
fieldType = "time";

case QVariant::String:
fieldType = "varchar";
fieldPrec = -1;
Expand Down

0 comments on commit 013f9e9

Please sign in to comment.