Skip to content

Commit

Permalink
Merge branch 'ob-10.0' into 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Buggynours committed Dec 13, 2015
2 parents 74b438f + 8286b68 commit 92326bf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion storage/connect/tabjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,13 @@ int TDBJSN::ReadDB(PGLOBAL g)
Fpos++;
M = 1;
rc = RC_OK;
} else if (Pretty != 1 || strcmp(To_Line, "]")) {
#if USE_G
strcpy(g->Message, G->Message);
#endif
rc = RC_FX;
} else
rc = (Pretty == 1 && !strcmp(To_Line, "]")) ? RC_EF : RC_FX;
rc = RC_EF;

} // endif ReadDB

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

#if USE_G
if (rc == RC_FX)
strcpy(g->Message, G->Message);

PlugSubSet(G, G->Sarea, G->Sarea_Size);
#endif
Row->Clear();
Expand Down

0 comments on commit 92326bf

Please sign in to comment.