From 1c439e20df659029621babaa9e2fb38e409fe12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 20 Apr 2017 08:32:17 +0200 Subject: [PATCH] Ignore case where comparing dimension names The case of the characters should be ignored when comparing dimension names in pcpatch_schema_same_dimensions. This is to match the behavior of pc_schema_get_dimension_by_name which ignores the case. --- pgsql/pc_editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgsql/pc_editor.c b/pgsql/pc_editor.c index c02bf11..b5ad78f 100644 --- a/pgsql/pc_editor.c +++ b/pgsql/pc_editor.c @@ -25,7 +25,7 @@ pcpatch_schema_same_dimensions(const PCSCHEMA *s1, const PCSCHEMA *s2) PCDIMENSION *s1dim = s1->dims[i]; PCDIMENSION *s2dim = s2->dims[i]; - if ( strcmp(s1dim->name, s2dim->name) != 0 ) + if ( strcasecmp(s1dim->name, s2dim->name) != 0 ) return false; if ( s1dim->interpretation != s2dim->interpretation )