mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- MDEV-11295: developing handling files contained in ZIP file.
A first experimental and limited implementation. modified: storage/connect/CMakeLists.txt modified: storage/connect/filamap.cpp new file: storage/connect/filamzip.cpp new file: storage/connect/filamzip.h modified: storage/connect/ha_connect.cc new file: storage/connect/ioapi.c new file: storage/connect/ioapi.h modified: storage/connect/mycat.cc modified: storage/connect/plgdbsem.h modified: storage/connect/plgdbutl.cpp modified: storage/connect/tabdos.cpp modified: storage/connect/tabdos.h modified: storage/connect/tabfmt.cpp modified: storage/connect/tabfmt.h modified: storage/connect/tabjson.cpp modified: storage/connect/tabjson.h new file: storage/connect/tabzip.cpp new file: storage/connect/tabzip.h new file: storage/connect/unzip.c new file: storage/connect/unzip.h new file: storage/connect/zip.c
This commit is contained in:
@@ -68,6 +68,9 @@
|
||||
#include "tabcol.h" // header of XTAB and COLUMN classes
|
||||
#include "valblk.h"
|
||||
#include "rcmsg.h"
|
||||
#ifdef ZIP_SUPPORT
|
||||
#include "filamzip.h"
|
||||
#endif // ZIP_SUPPORT
|
||||
|
||||
/***********************************************************************/
|
||||
/* DB static variables. */
|
||||
@@ -934,7 +937,16 @@ int PlugCloseFile(PGLOBAL g __attribute__((unused)), PFBLOCK fp, bool all)
|
||||
CloseXML2File(g, fp, all);
|
||||
break;
|
||||
#endif // LIBXML2_SUPPORT
|
||||
default:
|
||||
#ifdef ZIP_SUPPORT
|
||||
case TYPE_FB_ZIP:
|
||||
((PZIPFAM)fp->File)->close();
|
||||
fp->Memory = NULL;
|
||||
fp->Mode = MODE_ANY;
|
||||
fp->Count = 0;
|
||||
fp->File = NULL;
|
||||
break;
|
||||
#endif // ZIP_SUPPORT
|
||||
default:
|
||||
rc = RC_FX;
|
||||
} // endswitch Type
|
||||
|
||||
|
Reference in New Issue
Block a user