Skip to content

Commit

Permalink
Fix (?) retrieving integer arguments in JSON UDF's
Browse files Browse the repository at this point in the history
  modified:   storage/connect/jsonudf.cpp
  • Loading branch information
Buggynours committed Jul 22, 2015
1 parent fdd9af5 commit 4efcc35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/connect/jsonudf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static PJVAL MakeValue(PGLOBAL g, UDF_ARGS *args, int i)

break;
case INT_RESULT:
jvp->SetInteger(g, *(int*)sap);
jvp->SetInteger(g, (int)*(long long*)sap);
break;
case REAL_RESULT:
jvp->SetFloat(g, *(double*)sap);
Expand Down

0 comments on commit 4efcc35

Please sign in to comment.