Commit 1bb57e59 authored by Aleksey Midenkov's avatar Aleksey Midenkov

MDEV-19785 Storage CONNECT compilation error: unknown type name 'UNZFAM'

Another fail fix:

undefined reference to `ZipLoadFile`
parent 9d6b601e
...@@ -6679,6 +6679,7 @@ int ha_connect::create(const char *name, TABLE *table_arg, ...@@ -6679,6 +6679,7 @@ int ha_connect::create(const char *name, TABLE *table_arg,
if (trace(1)) if (trace(1))
htrc("xchk=%p createas=%d\n", g->Xchk, g->Createas); htrc("xchk=%p createas=%d\n", g->Xchk, g->Createas);
#if defined(ZIP_SUPPORT)
if (options->zipped) { if (options->zipped) {
// Check whether the zip entry must be made from a file // Check whether the zip entry must be made from a file
PCSZ fn = GetListOption(g, "Load", options->oplist, NULL); PCSZ fn = GetListOption(g, "Load", options->oplist, NULL);
...@@ -6708,6 +6709,7 @@ int ha_connect::create(const char *name, TABLE *table_arg, ...@@ -6708,6 +6709,7 @@ int ha_connect::create(const char *name, TABLE *table_arg,
} // endif fn } // endif fn
} // endif zipped } // endif zipped
#endif // ZIP_SUPPORT
// To check whether indexes have to be made or remade // To check whether indexes have to be made or remade
if (!g->Xchk) { if (!g->Xchk) {
......
...@@ -189,9 +189,11 @@ PQRYRES CSVColumns(PGLOBAL g, PCSZ dp, PTOS topt, bool info) ...@@ -189,9 +189,11 @@ PQRYRES CSVColumns(PGLOBAL g, PCSZ dp, PTOS topt, bool info)
htrc("File %s Sep=%c Qot=%c Header=%d maxerr=%d\n", htrc("File %s Sep=%c Qot=%c Header=%d maxerr=%d\n",
SVP(tdp->Fn), tdp->Sep, tdp->Qot, tdp->Header, tdp->Maxerr); SVP(tdp->Fn), tdp->Sep, tdp->Qot, tdp->Header, tdp->Maxerr);
#if defined(ZIP_SUPPORT)
if (tdp->Zipped) if (tdp->Zipped)
tcvp = new(g)TDBCSV(tdp, new(g)UNZFAM(tdp)); tcvp = new(g)TDBCSV(tdp, new(g)UNZFAM(tdp));
else else
#endif
tcvp = new(g) TDBCSV(tdp, new(g) DOSFAM(tdp)); tcvp = new(g) TDBCSV(tdp, new(g) DOSFAM(tdp));
tcvp->SetMode(MODE_READ); tcvp->SetMode(MODE_READ);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment