@@ -157,9 +157,9 @@ QgsPostgresProvider::QgsPostgresProvider( QString const & uri )
157
157
// fill type names into sets
158
158
mNativeTypes
159
159
// integer types
160
- << QgsVectorDataProvider::NativeType ( tr ( " Whole number (smallint - 16bit)" ), " int2" , QVariant::Int )
161
- << QgsVectorDataProvider::NativeType ( tr ( " Whole number (integer - 32bit)" ), " int4" , QVariant::Int )
162
- << QgsVectorDataProvider::NativeType ( tr ( " Whole number (integer - 64bit)" ), " int8" , QVariant::LongLong )
160
+ << QgsVectorDataProvider::NativeType ( tr ( " Whole number (smallint - 16bit)" ), " int2" , QVariant::Int, - 1 , - 1 , 0 , 0 )
161
+ << QgsVectorDataProvider::NativeType ( tr ( " Whole number (integer - 32bit)" ), " int4" , QVariant::Int, - 1 , - 1 , 0 , 0 )
162
+ << QgsVectorDataProvider::NativeType ( tr ( " Whole number (integer - 64bit)" ), " int8" , QVariant::LongLong, - 1 , - 1 , 0 , 0 )
163
163
<< QgsVectorDataProvider::NativeType ( tr ( " Decimal number (numeric)" ), " numeric" , QVariant::Double, 1 , 20 , 0 , 20 )
164
164
<< QgsVectorDataProvider::NativeType ( tr ( " Decimal number (decimal)" ), " decimal" , QVariant::Double, 1 , 20 , 0 , 20 )
165
165
@@ -170,10 +170,10 @@ QgsPostgresProvider::QgsPostgresProvider( QString const & uri )
170
170
// string types
171
171
<< QgsVectorDataProvider::NativeType ( tr ( " Text, fixed length (char)" ), " char" , QVariant::String, 1 , 255 )
172
172
<< QgsVectorDataProvider::NativeType ( tr ( " Text, limited variable length (varchar)" ), " varchar" , QVariant::String, 1 , 255 )
173
- << QgsVectorDataProvider::NativeType ( tr ( " Text, unlimited length (text)" ), " text" , QVariant::String )
173
+ << QgsVectorDataProvider::NativeType ( tr ( " Text, unlimited length (text)" ), " text" , QVariant::String, - 1 , - 1 , - 1 , - 1 )
174
174
175
175
// date type
176
- << QgsVectorDataProvider::NativeType ( tr ( " Date" ), " date" , QVariant::Date )
176
+ << QgsVectorDataProvider::NativeType ( tr ( " Date" ), " date" , QVariant::Date, - 1 , - 1 , - 1 , - 1 )
177
177
;
178
178
179
179
QString key;
0 commit comments