From dd91c93ca44cbe3cf4f6f7c94a8f225aefa4b408 Mon Sep 17 00:00:00 2001 From: PROJ-BOT <59655370+PROJ-BOT@users.noreply.github.com> Date: Fri, 7 Aug 2020 18:48:25 +0200 Subject: ProjectedCRS::identify(): fix to be able to identify EPSG:2154 as a candidate for 'RGF93_Lambert_93' (contributes to fixes https://github.com/qgis/QGIS/issues/32255) (#2316) Co-authored-by: github-actions[bot] --- src/iso19111/factory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/iso19111/factory.cpp') diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index de8e1362..4894085e 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -5642,7 +5642,7 @@ AuthorityFactory::createObjectsFromNameEx( sql += "AND deprecated = 1 "; } if (!approximateMatch) { - sql += "AND name LIKE ? "; + sql += "AND name = ? "; params.push_back(searchedNameWithoutDeprecated); } if (d->hasAuthorityRestriction()) { @@ -5672,7 +5672,7 @@ AuthorityFactory::createObjectsFromNameEx( sql += "AND ov.deprecated = 1 "; } if (!approximateMatch) { - sql += "AND a.alt_name LIKE ? "; + sql += "AND a.alt_name = ? "; params.push_back(searchedNameWithoutDeprecated); } if (d->hasAuthorityRestriction()) { -- cgit v1.2.3