diff options
author | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2018-03-18 15:05:27 +0200 |
---|---|---|
committer | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2018-03-18 15:05:27 +0200 |
commit | a0f9cbc931f53d335b388242b725604507eb44fa (patch) | |
tree | bff70f7e2d6a244fbff9054ad492a036573c68f6 /storage/connect/json.h | |
parent | 6d1d5c3aeb7100429036107d95787ea529f25e91 (diff) | |
parent | f9cf2df077f0f680f807c00b142971601ca4bb6f (diff) | |
download | mariadb-git-a0f9cbc931f53d335b388242b725604507eb44fa.tar.gz |
Merge remote-tracking branch 'connect/10.2' into 10.2
Diffstat (limited to 'storage/connect/json.h')
-rw-r--r-- | storage/connect/json.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/storage/connect/json.h b/storage/connect/json.h index addbd13676f..1d058ad575f 100644 --- a/storage/connect/json.h +++ b/storage/connect/json.h @@ -20,7 +20,8 @@ enum JTYP {TYPE_NULL = TYPE_VOID, TYPE_BINT = TYPE_BIGINT, TYPE_DTM = TYPE_DATE, TYPE_INTG = TYPE_INT, - TYPE_JSON = 12, + TYPE_VAL = 12, + TYPE_JSON, TYPE_JAR, TYPE_JOB, TYPE_JVAL}; @@ -160,6 +161,7 @@ class JSON : public BLOCK { //virtual PJVAL AddValue(PGLOBAL g, PJVAL jvp = NULL, int *x = NULL) {X return NULL;} virtual PJPR AddPair(PGLOBAL g, PCSZ key) {X return NULL;} virtual PJAR GetKeyList(PGLOBAL g) {X return NULL;} + virtual PJAR GetValList(PGLOBAL g) {X return NULL;} virtual PJVAL GetValue(const char *key) {X return NULL;} virtual PJOB GetObject(void) {return NULL;} virtual PJAR GetArray(void) {return NULL;} @@ -208,6 +210,7 @@ class JOBJECT : public JSON { virtual PJOB GetObject(void) {return this;} virtual PJVAL GetValue(const char* key); virtual PJAR GetKeyList(PGLOBAL g); + virtual PJAR GetValList(PGLOBAL g); virtual PSZ GetText(PGLOBAL g, PSZ text); virtual bool Merge(PGLOBAL g, PJSON jsp); virtual void SetValue(PGLOBAL g, PJVAL jvp, PCSZ key); @@ -261,8 +264,7 @@ class JVALUE : public JSON { friend bool SerializeValue(JOUT *, PJVAL); public: JVALUE(void) : JSON() {Clear();} - JVALUE(PJSON jsp) : JSON() - {Jsp = jsp; Value = NULL; Next = NULL; Del = false; Size = 1;} + JVALUE(PJSON jsp); JVALUE(PGLOBAL g, PVAL valp); JVALUE(PGLOBAL g, PCSZ strp); |