Commit 4efcc35a authored by Olivier Bertrand's avatar Olivier Bertrand

Fix (?) retrieving integer arguments in JSON UDF's

  modified:   storage/connect/jsonudf.cpp
parent fdd9af56
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment