Skip to content

Commit

Permalink
Json array index (position) was badly set for default array setting
Browse files Browse the repository at this point in the history
  modified:   storage/connect/tabjson.cpp
  • Loading branch information
Buggynours committed May 17, 2015
1 parent a82171c commit db33294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/connect/tabjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ bool JSONCOL::SetArrayOptions(PGLOBAL g, char *p, int i, PSZ nm)
else if (jnp->Op != OP_EXP) {
if (b) {
// Return 1st value (B is the index base)
jnp->Rank = 1 - Tjp->B;
jnp->Rank = Tjp->B;
jnp->Op = OP_EQ;
} else if (!Value->IsTypeNum()) {
jnp->CncVal = AllocateValue(g, (void*)", ", TYPE_STRING);
Expand Down

0 comments on commit db33294

Please sign in to comment.