Skip to content
Permalink
Browse files
mappostgis: restore case insensitive comparisons for 'using unique' i…
…n DATA, which was accidentaly removed in 48f6559 (fixes #6060)
  • Loading branch information
rouault committed Apr 29, 2020
1 parent fd7b54b commit edf6c5ddaab0ae81554e693753360dbcdf35ffe2
Showing 1 changed file with 4 additions and 4 deletions.
@@ -1344,9 +1344,9 @@ int msPostGISParseData(layerObj *layer)
if ( pos_use_2nd )
{
for ( tmp = pos_use_2nd + 5; *tmp == ' '; tmp++ );
if ( strncmp ( tmp, "unique ", 7 ) == 0 )
if ( strncasecmp ( tmp, "unique ", 7 ) == 0 )
for ( pos_uid = tmp + 7; *pos_uid == ' '; pos_uid++ );
if ( strncmp ( tmp, "srid=", 5 ) == 0 ) pos_srid = tmp + 5;
if ( strncasecmp ( tmp, "srid=", 5 ) == 0 ) pos_srid = tmp + 5;
};

/*
@@ -1355,7 +1355,7 @@ int msPostGISParseData(layerObj *layer)
if ( pos_use_1st )
{
for ( tmp = pos_use_1st + 5; *tmp == ' '; tmp++ );
if ( strncmp ( tmp, "unique ", 7 ) == 0 )
if ( strncasecmp ( tmp, "unique ", 7 ) == 0 )
{
if ( pos_uid )
{
@@ -1365,7 +1365,7 @@ int msPostGISParseData(layerObj *layer)
};
for ( pos_uid = tmp + 7; *pos_uid == ' '; pos_uid++ );
};
if ( strncmp ( tmp, "srid=", 5 ) == 0 )
if ( strncasecmp ( tmp, "srid=", 5 ) == 0 )
{
if ( pos_srid )
{

0 comments on commit edf6c5d

Please sign in to comment.