Skip to content

Commit 0356752

Browse files
committed
DateTime is also a native type for postgres provider
1 parent a665b7d commit 0356752

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/providers/postgres/qgspostgresprovider.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ QgsPostgresProvider::QgsPostgresProvider( QString const & uri )
179179

180180
// date type
181181
<< QgsVectorDataProvider::NativeType( tr( "Date" ), "date", QVariant::Date, -1, -1, -1, -1 )
182+
<< QgsVectorDataProvider::NativeType( tr( "Date & Time" ), "timestamp without time zone", QVariant::DateTime, -1, -1, -1, -1 )
182183
;
183184

184185
QString key;

0 commit comments

Comments
 (0)