1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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

modified:   storage/connect/jsonudf.cpp
This commit is contained in:
Olivier Bertrand
2015-07-22 13:21:55 +02:00
parent fdd9af56f6
commit 4efcc35a31

View File

@@ -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);