diff options
author | drh <> | 2022-01-11 22:06:25 +0000 |
---|---|---|
committer | drh <> | 2022-01-11 22:06:25 +0000 |
commit | a6c596b1941296377f22cc4173991c963d14a97e (patch) | |
tree | 2d18e695c3cd40df345e21d039122b679dd3efc2 /src/json.c | |
parent | aa97b57b111b20c0d1fa4e5d0d7576506a81142e (diff) | |
download | sqlite-a6c596b1941296377f22cc4173991c963d14a97e.tar.gz sqlite-a6c596b1941296377f22cc4173991c963d14a97e.zip |
Remove vestigial traces of json_ntype().
FossilOrigin-Name: 8da07c8b09ff83436a34e539e4cce8ba9524390017ca14f4af8344a12e351550
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/json.c b/src/json.c index 6fe5fa411..dbc3faaef 100644 --- a/src/json.c +++ b/src/json.c @@ -1903,13 +1903,10 @@ jsonSetDone: /* ** json_type(JSON) -** json_ntype(JSON) ** json_type(JSON, PATH) ** ** Return the top-level "type" of a JSON string. json_type() raises an -** error if either the JSON or PATH inputs are not well-formed. json_ntype() -** works like the one-argument version of json_type() except that it -** returns NULL if the JSON argument is not well-formed. +** error if either the JSON or PATH inputs are not well-formed. */ static void jsonTypeFunc( sqlite3_context *ctx, @@ -1920,7 +1917,7 @@ static void jsonTypeFunc( const char *zPath; JsonNode *pNode; - p = jsonParseCached(ctx, argv, sqlite3_user_data(ctx)!=0 ? 0 : ctx); + p = jsonParseCached(ctx, argv, ctx); if( p==0 ) return; if( argc==2 ){ zPath = (const char*)sqlite3_value_text(argv[1]); |