Skip to content
Permalink
Browse files

Merge pull request #1265 from nyalldawson/postgis_time

Make PostGIS provider correctly create time and datetime formats
  • Loading branch information
jef-n committed Mar 27, 2014
2 parents 48b9ccb + 013f9e9 commit b4b01550e44a84eb30138c3af1900c6ea38f4b78
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 b4b0155

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