From 7bd6fea01783827de62c425c89966eb5e47a372d Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Thu, 16 Jan 2025 17:16:04 +0100 Subject: [PATCH] change to QStringLiteral Co-authored-by: Stefanos Natsis --- src/providers/postgres/qgspostgresconn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/postgres/qgspostgresconn.cpp b/src/providers/postgres/qgspostgresconn.cpp index ba8cb06371c1..c81159861316 100644 --- a/src/providers/postgres/qgspostgresconn.cpp +++ b/src/providers/postgres/qgspostgresconn.cpp @@ -1066,7 +1066,7 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP if ( resultRasterOverviewsExist.result() && resultRasterOverviewsExist.PQntuples() > 0 ) { - QString sqlRasterOverviews = QString( "SELECT o_table_schema, o_table_name FROM public.raster_overviews" ); + const QString sqlRasterOverviews = QStringLiteral( "SELECT o_table_schema, o_table_name FROM public.raster_overviews" ); QgsPostgresResult resultRasterOverviews; resultRasterOverviews = LoggedPQexec( "QgsPostgresConn", sqlRasterOverviews );