diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2021-02-02 00:03:07 +0100 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2021-02-02 00:03:07 +0100 |
commit | 571294f954779c195763d996c3235ec979b4cdd9 (patch) | |
tree | 285cad325005ccaa99acf58e730c047df7a162f4 | |
parent | c2aecb05751ee7319722cbe4c65b974e1f10fbbb (diff) | |
download | mariadb-git-571294f954779c195763d996c3235ec979b4cdd9.tar.gz |
Fix failed test bson and xml
-rw-r--r-- | storage/connect/tabjson.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/storage/connect/tabjson.cpp b/storage/connect/tabjson.cpp index 19f721f692b..fb5a64c7d55 100644 --- a/storage/connect/tabjson.cpp +++ b/storage/connect/tabjson.cpp @@ -1024,8 +1024,14 @@ bool TDBJSN::OpenDB(PGLOBAL g) /* Lrecl is Ok. */ /*********************************************************************/ size_t linelen = Lrecl; + MODE mode = Mode; - //To_Line = (char*)PlugSubAlloc(g, NULL, linelen); + // Buffer must be allocated in g->Sarea + Mode = MODE_ANY; + Txfp->AllocateBuffer(g); + Mode = mode; + + //To_Line = (char*)PlugSubAlloc(g, NULL, linelen); //memset(To_Line, 0, linelen); To_Line = Txfp->GetBuf(); xtrc(1, "OpenJSN: R%hd mode=%d To_Line=%p\n", Tdb_No, Mode, To_Line); |