• Olivier Bertrand's avatar
    Fix some XML table type bugs: · e6b563f8
    Olivier Bertrand authored
    - in DOMNODELIST::DropItem
      if (Listp == NULL || Listp->length <= n)
        return true;
    is wrong, should be:
      if (Listp == NULL || Listp->length < n)
        return true;
    - Crash in discovery with libxml2 in XMLColumns because:
                if (!tdp->Usedom)    // nl was destroyed
                  vp->nl = vp->pn->GetChildElements(g);
    is executed with vp->pn uninitialized. Fixed by adding:
              vp->pn = node;
    line 264.
    -In discovery with libxml2 some columns are not found.
    Because list was not recovered properly, nodes being modified and not reallocated.
    Fixed lines 214 and 277.
      modified:   storage/connect/domdoc.cpp
      modified:   storage/connect/tabxml.cpp
    
    Add support for zipped table files
      modified:   storage/connect/domdoc.cpp
      modified:   storage/connect/domdoc.h
      modified:   storage/connect/filamap.cpp
      modified:   storage/connect/filamap.h
      modified:   storage/connect/filamzip.cpp
      modified:   storage/connect/filamzip.h
      modified:   storage/connect/ha_connect.cc
      modified:   storage/connect/libdoc.cpp
      modified:   storage/connect/plgdbutl.cpp
      modified:   storage/connect/plgxml.cpp
      modified:   storage/connect/plgxml.h
      modified:   storage/connect/tabdos.cpp
      modified:   storage/connect/tabdos.h
      modified:   storage/connect/tabfmt.cpp
      modified:   storage/connect/tabjson.cpp
      modified:   storage/connect/tabxml.cpp
    e6b563f8
filamzip.h 3.74 KB