case 'boolean': $attributeType = 'N'; break; case 'text': case 'date': case 'time': case 'timestamp': case 'blob': case 'clob': $attributeType = 'S'; break; default: break; } // Close connection : $edb->end(); } } } echo "{\"attributeType\":\"{$attributeType}\"}"; // Request = execute query } else { if ($operation == 'query') { $_REQUEST['externalSearchDefinition'] = true; $_REQUEST['mode'] = 'search'; $mapLayers = getLayersByGroupOrLayerName($map, $layerName); if ($mapLayers && $mapLayers[0]) { $queryResult = ''; // Query received from the editor without modification: $originalQuery = $_REQUEST['query']; foreach ($mapLayers as $mapLayer) {