mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
Fix (?) retrieving integer arguments in JSON UDF's
modified: storage/connect/jsonudf.cpp
This commit is contained in:
@@ -261,7 +261,7 @@ static PJVAL MakeValue(PGLOBAL g, UDF_ARGS *args, int i)
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case INT_RESULT:
|
case INT_RESULT:
|
||||||
jvp->SetInteger(g, *(int*)sap);
|
jvp->SetInteger(g, (int)*(long long*)sap);
|
||||||
break;
|
break;
|
||||||
case REAL_RESULT:
|
case REAL_RESULT:
|
||||||
jvp->SetFloat(g, *(double*)sap);
|
jvp->SetFloat(g, *(double*)sap);
|
||||||
|
Reference in New Issue
Block a user