Skip to content

Commit

Permalink
MDEV-19785 Storage CONNECT compilation error: unknown type name 'UNZFAM'
Browse files Browse the repository at this point in the history
Another fail fix:

undefined reference to `ZipLoadFile`
  • Loading branch information
midenok committed Jul 8, 2019
1 parent 9abdf11 commit 0fe212a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage/connect/ha_connect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6683,6 +6683,7 @@ int ha_connect::create(const char *name, TABLE *table_arg,
if (trace(1))
htrc("xchk=%p createas=%d\n", g->Xchk, g->Createas);

#if defined(ZIP_SUPPORT)
if (options->zipped) {
// Check whether the zip entry must be made from a file
PCSZ fn = GetListOption(g, "Load", options->oplist, NULL);
Expand Down Expand Up @@ -6712,6 +6713,7 @@ int ha_connect::create(const char *name, TABLE *table_arg,
} // endif fn

} // endif zipped
#endif // ZIP_SUPPORT

// To check whether indexes have to be made or remade
if (!g->Xchk) {
Expand Down
2 changes: 2 additions & 0 deletions storage/connect/tabfmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
SVP(tdp->Fn), tdp->Sep, tdp->Qot, tdp->Header, tdp->Maxerr);

#if defined(ZIP_SUPPORT)
if (tdp->Zipped)
tcvp = new(g)TDBCSV(tdp, new(g)UNZFAM(tdp));
else
#endif
tcvp = new(g) TDBCSV(tdp, new(g) DOSFAM(tdp));

tcvp->SetMode(MODE_READ);
Expand Down

0 comments on commit 0fe212a

Please sign in to comment.