mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Handling PostgreSQL <= 11.
This commit is contained in:
parent
80f1e3688c
commit
fef79a0e59
@ -908,7 +908,14 @@ bool QgsPostgresProvider::loadFields()
|
||||
QString attGenerated = connectionRO()->pgVersion() >= 120000 ? fmtFieldTypeResult.PQgetvalue( i, 9 ) : " ";
|
||||
fmtFieldTypeMap[attrelid][attnum] = formatType;
|
||||
descrMap[attrelid][attnum] = descr;
|
||||
defValMap[attrelid][attnum] = attGenerated.isEmpty() ? defVal : "DEFAULT";
|
||||
if ( connectionRO()->pgVersion() >= 120000 )
|
||||
{
|
||||
defValMap[attrelid][attnum] = attGenerated.isEmpty() ? defVal : "DEFAULT";
|
||||
}
|
||||
else
|
||||
{
|
||||
defValMap[attrelid][attnum] = defVal;
|
||||
}
|
||||
attTypeIdMap[attrelid][attnum] = attType;
|
||||
notNullMap[attrelid][attnum] = attNotNull;
|
||||
uniqueMap[attrelid][attnum] = uniqueConstraint;
|
||||
|
Loading…
x
Reference in New Issue
Block a user