Skip to content

Commit 92326bf

Browse files
committed
Merge branch 'ob-10.0' into 10.0
2 parents 74b438f + 8286b68 commit 92326bf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

storage/connect/tabjson.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,13 @@ int TDBJSN::ReadDB(PGLOBAL g)
688688
Fpos++;
689689
M = 1;
690690
rc = RC_OK;
691+
} else if (Pretty != 1 || strcmp(To_Line, "]")) {
692+
#if USE_G
693+
strcpy(g->Message, G->Message);
694+
#endif
695+
rc = RC_FX;
691696
} else
692-
rc = (Pretty == 1 && !strcmp(To_Line, "]")) ? RC_EF : RC_FX;
697+
rc = RC_EF;
693698

694699
} // endif ReadDB
695700

@@ -793,6 +798,9 @@ int TDBJSN::MakeTopTree(PGLOBAL g, PJSON jsp)
793798
int rc = TDBDOS::WriteDB(g);
794799

795800
#if USE_G
801+
if (rc == RC_FX)
802+
strcpy(g->Message, G->Message);
803+
796804
PlugSubSet(G, G->Sarea, G->Sarea_Size);
797805
#endif
798806
Row->Clear();

0 commit comments

Comments
 (0)