This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Big Stone
Recipients Big Stone
Date 2020-04-13.09:37:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586770672.18.0.207799300786.issue40270@roundup.psfhosted.org>
In-reply-to
Content
hi all. On Windows/Mac, isn't sqlite3 module compiled with "json1" extension on recent Python releases ?

I thought it was, but fails to use it.

Python 3.9.0a5 (tags/v3.9.0a5:dcd4c4f, Mar 23 2020, 20:39:59) [MSC v.1924 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import sqlite3
>>> conn = sqlite3.connect(":memory:")
>>> cursor = conn.cursor()
>>> cursor.execute("select sqlite_version()").fetchall()
[('3.31.1',)]
>>> cursor.execute("select json_object('a',2,'c',4)").fetchall()

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    cursor.execute("select json_object('a',2,'c',4)").fetchall()
sqlite3.OperationalError: no such function: json_object
>>>
History
Date User Action Args
2020-04-13 09:37:52Big Stonesetrecipients: + Big Stone
2020-04-13 09:37:52Big Stonesetmessageid: <1586770672.18.0.207799300786.issue40270@roundup.psfhosted.org>
2020-04-13 09:37:52Big Stonelinkissue40270 messages
2020-04-13 09:37:52Big Stonecreate