diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2015-07-22 15:49:38 +0200 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2015-07-22 15:49:38 +0200 |
commit | 3b040a06ede62553560bd374b727c6187e5629a7 (patch) | |
tree | 02a1a6f93e06269744e37599760bf0f277867e34 | |
parent | a392c79552f1a728426b6664f434fe818a894e03 (diff) | |
download | mariadb-git-3b040a06ede62553560bd374b727c6187e5629a7.tar.gz |
Fix (?) retrieving integer arguments in JSON UDF's
modified: storage/connect/jsonudf.cpp
-rw-r--r-- | storage/connect/jsonudf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/connect/jsonudf.cpp b/storage/connect/jsonudf.cpp index ff4025ee0fb..b2d983712aa 100644 --- a/storage/connect/jsonudf.cpp +++ b/storage/connect/jsonudf.cpp @@ -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); |