aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-08-20 23:29:54 +0200
committerKristian Evers <kristianevers@gmail.com>2020-08-21 08:46:38 +0200
commit403bd8b2674873955eedab1d578586ec2cebdc25 (patch)
tree492ccf8c7f4c5714624db24a2a4018595593af8a /src
parentb104bc7afbf08a5d2e6097276784424d091b3f59 (diff)
downloadPROJ-403bd8b2674873955eedab1d578586ec2cebdc25.tar.gz
PROJ-403bd8b2674873955eedab1d578586ec2cebdc25.zip
createObjectsFromName(): add back case insensitivity when comparing names
Fixes #2332 Didn't affect released versions
Diffstat (limited to 'src')
-rw-r--r--src/iso19111/factory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp
index 4894085e..a9d82268 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 = ? ";
+ sql += "AND name = ? COLLATE NOCASE ";
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 = ? ";
+ sql += "AND a.alt_name = ? COLLATE NOCASE ";
params.push_back(searchedNameWithoutDeprecated);
}
if (d->hasAuthorityRestriction()) {