@@ -1336,9 +1336,6 @@ static msOGRFileInfo *msOGRFileOpen(layerObj *layer, const char *connection)
13361336 }
13371337 } else if (strcmp (name, " Parquet" ) == 0 ) {
13381338 psInfo->dialect = " Parquet" ;
1339- if (layer->debug >= MS_DEBUGLEVEL_DEBUG)
1340- msDebug (" msOGRFileInfo: Yes its parquet\n " );
1341-
13421339 // todo: Parquet not yet tested
13431340
13441341 } else if (strcmp (name, " PostgreSQL" ) == 0 ) {
@@ -1401,6 +1398,9 @@ static msOGRFileInfo *msOGRFileOpen(layerObj *layer, const char *connection)
14011398 if (psInfo->dialect != NULL && EQUAL (psInfo->dialect , " Spatialite" ))
14021399 msOGRFileOpenSpatialite (layer, pszLayerDef, psInfo);
14031400
1401+ if (layer->debug >= MS_DEBUGLEVEL_DEBUG)
1402+ msDebug (" msOGRFileInfo: Yes its %s\n " , psInfo->dialect );
1403+
14041404 return psInfo;
14051405}
14061406
@@ -2135,6 +2135,9 @@ static int msOGRFileWhichShapes(layerObj *layer, rectObj rect,
21352135 return (MS_FAILURE);
21362136 }
21372137
2138+ if (layer->debug >= MS_DEBUGLEVEL_DEBUG)
2139+ msDebug (" msOGRFileWhichShapes: Yes its %s\n " , psInfo->dialect );
2140+
21382141 char *select = (psInfo->pszSelect ) ? msStrdup (psInfo->pszSelect ) : NULL ;
21392142 const rectObj rectInvalid = MS_INIT_INVALID_RECT;
21402143 bool bIsValidRect = memcmp (&rect, &rectInvalid, sizeof (rect)) != 0 ;
0 commit comments