We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74b438f + 8286b68 commit 92326bfCopy full SHA for 92326bf
storage/connect/tabjson.cpp
@@ -688,8 +688,13 @@ int TDBJSN::ReadDB(PGLOBAL g)
688
Fpos++;
689
M = 1;
690
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;
696
} else
- rc = (Pretty == 1 && !strcmp(To_Line, "]")) ? RC_EF : RC_FX;
697
+ rc = RC_EF;
698
699
} // endif ReadDB
700
@@ -793,6 +798,9 @@ int TDBJSN::MakeTopTree(PGLOBAL g, PJSON jsp)
793
798
int rc = TDBDOS::WriteDB(g);
794
799
795
800
#if USE_G
801
+ if (rc == RC_FX)
802
803
+
796
804
PlugSubSet(G, G->Sarea, G->Sarea_Size);
797
805
#endif
806
Row->Clear();
0 commit comments