mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix pretty=2 Tabjson bug on INSERT.
Occuring when inserting more than one line in one statement. modified: storage/connect/json.cpp - Fix a wrong if statement modified: storage/connect/tabjson.cpp - Continue BSON implementation modified: storage/connect/bson.cpp modified: storage/connect/bson.h modified: storage/connect/filamtxt.cpp modified: storage/connect/filamtxt.h modified: storage/connect/tabbson.cpp modified: storage/connect/tabbson.h - No need anymore deleted: storage/connect/mysql-test/connect/r/bson.result deleted: storage/connect/mysql-test/connect/t/bson.test
This commit is contained in:
@@ -1925,7 +1925,7 @@ PJSON JSONCOL::GetRow(PGLOBAL g)
|
||||
PJSON nwr, row = Tjp->Row;
|
||||
|
||||
for (int i = 0; i < Nod && row; i++) {
|
||||
if (Nodes[i+1].Op == OP_XX)
|
||||
if (i < Nod-1 && Nodes[i+1].Op == OP_XX)
|
||||
break;
|
||||
else switch (row->GetType()) {
|
||||
case TYPE_JOB:
|
||||
|
Reference in New Issue
Block a user