Show
Ignore:
Timestamp:
07/14/10 09:30:06 (19 months ago)
Author:
ol
Message:

Allow describeFeatureType on views. Related to NULL PK. Bug reported and analysed by Mike

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/wfs/wfs_describe.c

    r301 r311  
    5858    table = ows_psql_describe_table(o, layer_name); 
    5959 
    60     assert(id_name != NULL); 
    6160    assert(table != NULL); 
    6261 
    6362    /* Output the description of the layer_name */ 
    6463    for (an = table->first; an != NULL; an = an->next) { 
    65         if (!buffer_cmp(an->key, id_name->buf)) { 
     64        if (!id_name || (id_name && !buffer_cmp(an->key, id_name->buf))) { 
    6665            fprintf(o->output, "    <xs:element name ='"); 
    6766            buffer_flush(an->key, o->output);