Skip to content

Commit

Permalink
JSON is always enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Nov 28, 2023
1 parent 40b52db commit 9a8c1ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions apsw/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3460,8 +3460,6 @@ def check(text, locale, func="lower", equal=False):
check("I", "en_us", equal=True)

def testJSON1Extension(self):
if not self.checkOptionalExtension("json1", "select json('{}')"):
return
# some sanity checks that it is working
l = self.db.cursor().execute("select json_array_length('[1,2,3,4]')").fetchall()[0][0]
self.assertEqual(l, 4)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def finalize_options(self):

if self.enable_all_extensions:
exts = [
"fts4", "fts3", "fts3_parenthesis", "rtree", "stat4", "json1", "fts5", "rbu", "geopoly",
"fts4", "fts3", "fts3_parenthesis", "rtree", "stat4", "fts5", "rbu", "geopoly",
"math_functions"
]
if not self.omit or "icu" not in self.omit.split(","):
Expand Down

0 comments on commit 9a8c1ad

Please sign in to comment.