Message366290
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
>>> |
|
Date |
User |
Action |
Args |
2020-04-13 09:37:52 | Big Stone | set | recipients:
+ Big Stone |
2020-04-13 09:37:52 | Big Stone | set | messageid: <1586770672.18.0.207799300786.issue40270@roundup.psfhosted.org> |
2020-04-13 09:37:52 | Big Stone | link | issue40270 messages |
2020-04-13 09:37:52 | Big Stone | create | |
|