aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/json1.c
Commit message (Collapse)AuthorAge
* An attempt to integrate the JSON functions directly into the SQLite core,drh2022-01-06
| | | | | rather than holding them as an extension. FossilOrigin-Name: 583b47d865fb8d2c9ae4d3a4e70356a8a758978efb0a282f6b19775bf41fb748
* In the json1 extension, which compiling it separately, ensure that eitherdrh2021-12-20
| | | | | | | | SQLITE_DEBUG macro or the NDEBUG macro is set prior to including assert.h. If neither macro is defined, then assert() statement do generate code but VVA() statements do not, and that is a deadly combination. [forum:/forumpost/858dee399e|forum post 858dee399e] FossilOrigin-Name: d9f814a6402ca7fd999bbb847dc354b52ab9b97cae0c932344584d26c9430f24
* Fix a faulty JSON assert() added 30 days ago by check-in [7b8ea2298927fd34].drh2021-11-15
| | | | | dbsqlfuzz f30366e7b02562398a387ddcc681422fd4251190. FossilOrigin-Name: 0e0c23fcc493a5d6beb6ab9554981bbc36ba1554fea0f8ba78dc41738f4bd1c2
* The VVA() macro in json1.c must be active during SQLITE_COVERAGE_TEST becausedrh2021-11-01
| | | | | it affects the outcome of testcase() macros. FossilOrigin-Name: 92c3d253797f9bde4670984d60bbd50b7b28540d2b5f503f318843580bab8765
* Fix an incorrect JSON assert() that was added 5 days ago by check-in ↵drh2021-10-20
| | | | | [7b8ea2298927fd34]. FossilOrigin-Name: e162da3ab4c183b67872be004035c48fc8f20084bc5757aec27410ce23a36631
* Protect the JsonNode.u union using nearby assert()s and branches.drh2021-10-15
| | | FossilOrigin-Name: 7b8ea2298927fd34f27b3345add3ce751ed728387fe3d9207b601ba6449d5af9
* Fix separate compilation of json1.c, which was apparently broken bydrh2021-10-05
| | | | | check-in [32f33f356931242b]. FossilOrigin-Name: 0c7ece6792d30bdb314e2a6e61d0c051c3619a2d749f8b1df7dc2b1f521388bf
* Fix harmless static-analyzer warnings.drh2021-10-04
| | | FossilOrigin-Name: 32f33f356931242b59c01b5df7e180941231e3d9c91577ad33aa4a01e9d59092
* Fix harmless static analyzer warnings.drh2021-10-04
| | | FossilOrigin-Name: 6604a085964121113e7b7f57537a0ba64ba058d0eb12bf0a3aeb6d1b7a29d516
* Fix harmless compiler warnings.drh2021-10-01
| | | FossilOrigin-Name: 94b59691ee50a4666b25e36d1529fc52f714bbe94c3e8ccb35bf0a4ea11050db
* Fix a potential memory leak in json_group_object() following an error.drh2021-05-28
| | | | | dbsqlfuzz cd32630de3ff039d97089592b63cb3616f8ec9dd FossilOrigin-Name: 21676731cedae27d1ab9fe62b269001ae6e3eeb3caa87b4f5536f777631a8bbc
* Guard against a NULL-pointer dereference following OOM in the JSON extension.drh2021-04-30
| | | FossilOrigin-Name: ea221f3c8e243a5dc4952e510cbe396614a24876bacdc04fb1ebd4127c7ef0d9
* Fix a potential crash when using json_group_array() as a window function.dan2021-04-14
| | | FossilOrigin-Name: 3c266690c753d093c2cb74138a46ed69276d85cd119d687a6858c84211e84eaf
* Fix an error in the inversion function for json_group_array().drh2021-04-13
| | | | | dbsqlfuzz 68a4b0f668b7bc27235e3f1c5cff8a2d94cfa17e. FossilOrigin-Name: e718a62ed1d5ba9b1404ba67fae1ad731809e2ebd9253edc57d2b34a19fbef24
* Fix harmless compiler warnings that surface in newer versions of GCC.drh2020-08-10
| | | FossilOrigin-Name: 9d670a318381f219b467653f5f9539097808b887ae37291ce13be462dedfb18d
* Avoid harmless UB in memcpy() in the JSON extension.drh2020-05-17
| | | FossilOrigin-Name: 69e149f76853d196c8855fedfc98848b60fb116ac36bc08824b1a122469f8ece
* Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to setdrh2020-01-07
| | | | | the risk rank for many virtual tables. FossilOrigin-Name: 4c21373c21c9b17b222ae65297a039a035e6ec6b505c00c33704e3c03f94f834
* Enhance PRAGMA function_list so that it shows all instances of each FuncDef,drh2020-01-04
| | | | | | the number of arguments, the encoding, the type, and the flags. Use this capability to locate and fix incorrect function flags in the standard build. FossilOrigin-Name: 9ca906d24a2e88eddb2fd067783512b66cfc49dce1596d816a1c38a09d128218
* Extend the json-path mechanism with array indexes of the form "#" or "#-n" fordrh2019-11-22
| | | | | some positive number "n", to reference the end of an array. FossilOrigin-Name: 35ed68a651f4cf8740597433b0f1c3b345841868022e0904e9f342840ba0e502
* Proper surrogate pair decoding added to JSON functions. See the mailing listdrh2019-11-10
| | | | | | bug report and [https://bugs.python.org/issue38749]. More test cases needed here, but it seems to work so far. FossilOrigin-Name: 51027f08c0478f1bf9d7545d9e268c772c0a5cd5dda4b03d78f16c7d94f2f50d
* Fix harmless compiler warnings.drh2019-09-21
| | | FossilOrigin-Name: 8ea1dc727d391b15d0c4fa858ff68d5b8a63dde46408f24027dac8d28f044cbd
* Fix the windows inverse function on the JSON aggregates.drh2019-09-14
| | | FossilOrigin-Name: f464d847af490dd3ec45565dcc4c2e6ff4ed1ebb65036f30ca0b3ce2e73080e6
* Change the meaning of the SQLITE_SUBTYPE flag so that it indicates that the ↵dan2019-09-13
| | | | | user-defined function cares about the subtypes of its arguments. FossilOrigin-Name: af1bc20f502816db460d2b2d353f715da5cf660e59095de5214c829c1cb20981
* Add the SQLITE_SUBTYPE flag, which can be passed to ↵dan2019-09-07
| | | | | sqlite3_create_function() and similar to indicate to the core that a user function is likely to use sqlite3_result_subtype(). FossilOrigin-Name: 6aa438ce41d460a6782ae63503128b9140c28ff59c2b2eed48b004acf83e0560
* Do not allow the json_set() function to overwrite the same element more thandrh2019-07-31
| | | | | once. FossilOrigin-Name: f237f60e4fa9171dfe9a77c8637595c2701e971034d41bd6018944e8b2b27a6f
* Fix a problem with handling with handling quoted path elements in extension ↵dan2019-06-17
| | | | | functions json_set() and json_insert() reported on the mailing list. FossilOrigin-Name: 45bfcb88e71451a656982e217375e257fc8e68374349c2984be1266bf86fb8cf
* Use 64-bit math to compute the sizes of memory allocations in extensions.drh2019-01-08
| | | FossilOrigin-Name: ca67f2ec0e294384c397db438605df1b47aae5f348a8de94f97286997625d169
* Fix the JSON table-valued functions to make use of SQLITE_CONSTRAINT.drh2018-11-16
| | | FossilOrigin-Name: 3f34f4f561c77f8ec88906818f2984dcf8f17d1645bac175e9027595517560bc
* Initial code to make shadow tables read-only to ordinary SQL. The nowdrh2018-11-05
| | | | | | | | xShadowName method is added to the sqlite3_module object and is used to identify potential shadow tables. The SQLITE_PREPARE_SHADOW argument to sqlite3_prepare_v3() is defined. It is designed to permit writing to shadow tables, but is currently an unused placeholder. FossilOrigin-Name: 31942b3dd3f66eb0d9977bf1cadc2f2d7be7967cce2b55784be0b939dfef1985
* Fix some harmless compiler warnings seen with MSVC.mistachkin2018-09-12
| | | FossilOrigin-Name: 78862252da7f59d4737ed16f4ccf100cea27d8b421db31051afbaa8d96f24de3
* Improved JSON parser caching.drh2018-08-30
| | | FossilOrigin-Name: 58078c0d2647a194279fa80e032670441b296ffc3acee692901faa5beca460b7
* Add missing SQLITE_OMIT_WINDOWFUNC check to the json1 extension.mistachkin2018-07-24
| | | FossilOrigin-Name: fe19f8239dc474db0854a0a8ce5189ac4195c736b496f475a59a185e0879b40c
* Fixes for various harmless compiler warnings.drh2018-07-09
| | | FossilOrigin-Name: 5023b1b85b883a716a5da673740b6effe214ee0490f4ca45f161bb8b04784366
* Fix the JSON extension so that it can be compiled separately from thedrh2018-07-07
| | | | | amalgamation. FossilOrigin-Name: 4b8cfe7bfe5f049eb4607fd480429fcd2060e691891d8bffc9917f13fa373988
* Add ALWAYS() macros on results of sqlite3_aggregate_context() calls indrh2018-07-07
| | | | | xInverse() implements, since they can never fail. FossilOrigin-Name: fdef2a921d451c66ca535021d08af3ec1ab53283da2d2979378a799fd8731ef9
* Get the json_group_array() and json_group_object() SQL functions workingdrh2018-07-05
| | | | | as window functions. FossilOrigin-Name: 916cdc83f5a45e0b6f61c52ff5fde70d54bcd0dfaa4a32f9ac709fe0ddbb480b
* Correct output for the fullkey column of json_each() when the total JSONdrh2018-05-16
| | | | | input is a simple value, not an array or object. FossilOrigin-Name: b45b18850c59f22a163ee482f529f578a8798f96d0e26b5a061d336d480a1540
* Cache the JSON parse used by json_extract().drh2017-05-11
| | | FossilOrigin-Name: 44ca6c2c4639f3c50ae9233ee299ff0fc4566462c31f28d8676f8de7ffdcd7f0
* Make USE_FULLWARN=1 the default for MSVC and fix harmless compiler warnings.mistachkin2017-04-14
| | | FossilOrigin-Name: 6bf673767b8e5cedef1acff795cbe524fab8db2525c06424db4e038934a33936
* Fix a regression caused by the fix for ticket [6c9b5514077fed34551f98e64c09a1] -drh2017-04-13
| | | | | control characters allowed in JSON. FossilOrigin-Name: 8e7b611863247a3bf46a96ec4b47d24c0ae0d60c9cee968a1cfd1da157e7c9bb
* Limit the depth of recursion for valid JSON in the JSON1 extension in orderdrh2017-04-11
| | | | | | to avoid using excess stack space in the recursive descent parser. Fix for ticket [981329adeef51011052667a9]. FossilOrigin-Name: 1f68c184596912d742b50b1ca38252a9e783aacf121619a27b17a7ae9f6df041
* Change the JSON extension so that it disallows control characters inside ofdrh2017-04-10
| | | | | strings. Fix for ticket [6c9b5514077fed34551f98e64c09a10dc2fc8e16]. FossilOrigin-Name: 475d8f82ec61a4ff3e6a7650731230ccecb6cc580d1397d189d0ba479d9bad4d
* Disallow leading zeros on numeric constants in JSON.drh2017-04-08
| | | | | Fix for ticket [b93be8729a895a528e2] FossilOrigin-Name: 204e72f0080e8f08f99978870bd3cb9d59b068ecffee82192d707c650548b43b
* Fix two harmless compiler warnings.drh2017-03-25
| | | FossilOrigin-Name: 32be9c3faaafd736da3f49d475dc9279af4e4ba38070b60033d898345080acf0
* Fix a harmless compiler warning in the JSON1 extension.drh2017-03-24
| | | FossilOrigin-Name: c2c3dd84534bb5ea81c974847b74a166c9cba1545fc749ce625929f303bf22e4
* Fix an error in the new json_patch() routine discovered by Ralf Junker.drh2017-03-24
| | | FossilOrigin-Name: 9d5350418b2f6113e0b50c57e8a872006f27753067baf08ffdfa7943c0c9a148
* Change the name of the json_merge_patch() function to just json_patch().drh2017-03-23
| | | FossilOrigin-Name: 04d4100445a3373986ee962618bc03ec304f6ba2f867c8e9eee415daffb593fc
* Avoid redundant edits in the json_merge_patch() function.drh2017-03-23
| | | FossilOrigin-Name: 4a8e6437dd610c5376a07867a73e5a7e2ea90357a018e1788ecce6f4e10bc939
* Fix harmless compiler warnings in the new json_merge_patch() logic.drh2017-03-23
| | | FossilOrigin-Name: 5d2cf5a2f8afd88d041d89b3936042ce5a43629d23c48738cb2791b24da3e6af
* Various fixes to the json_merge_patch() function.drh2017-03-23
| | | FossilOrigin-Name: f49fd2554b0723eb7cf2fd765d655c6820833ee7e5f7d7629d98c27a6fffa1d9