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 b4b0155
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 b4b0155

Please sign in to comment.