summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2017-01-24 02:29:04 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2017-01-24 02:29:04 +0400
commit0d107a85b3dd6969e66cc9cb4bd29e1cc92a7d18 (patch)
tree4ea2e72a0886dae95c31ecdc9556b381c4e097d5 /strings
parent1f3ad6a4ba63074c51c84dff449c35a8314a7f36 (diff)
downloadmariadb-git-0d107a85b3dd6969e66cc9cb4bd29e1cc92a7d18.tar.gz
MDEV-11042 Implement GeoJSON functions.
ST_AsGeoJSON and ST_GeomFromGeoJSON functions implemented.
Diffstat (limited to 'strings')
-rw-r--r--strings/json_lib.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c
index 47a3e37fa4c..16d7436ab6e 100644
--- a/strings/json_lib.c
+++ b/strings/json_lib.c
@@ -1231,10 +1231,7 @@ int json_key_matches(json_engine_t *je, json_string_t *k)
return 0;
}
- if (json_read_string_const_chr(k))
- return 1;
-
- return 0;
+ return json_read_string_const_chr(k);
}