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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user