We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 6428fed commit e6f5236Copy full SHA for e6f5236
src/providers/postgres/qgspostgresprovider.cpp
@@ -4290,6 +4290,9 @@ QgsAttrPalIndexNameHash QgsPostgresProvider::palAttributeIndexNames() const
4290
4291
QgsPostgresProvider::Relkind QgsPostgresProvider::relkind() const
4292
{
4293
+ if ( mIsQuery )
4294
+ return Relkind::Unknown;
4295
+
4296
QString sql = QStringLiteral( "SELECT relkind FROM pg_class WHERE oid=regclass(%1)::oid" ).arg( quotedValue( mQuery ) );
4297
QgsPostgresResult res( connectionRO()->PQexec( sql ) );
4298
QString type = res.PQgetvalue( 0, 0 );
0 commit comments