Commit 3b040a06 authored by Olivier Bertrand's avatar Olivier Bertrand

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

  modified:   storage/connect/jsonudf.cpp
parent a392c795
......@@ -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