{"html_url": "https://github.com/simonw/sqlite-utils/issues/408#issuecomment-1066139147", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/408", "id": 1066139147, "node_id": "IC_kwDOCGYnMM4_i_4L", "user": {"value": 24938923, "label": "learning4life"}, "created_at": "2022-03-13T16:45:00Z", "updated_at": "2022-03-13T16:54:09Z", "author_association": "NONE", "body": "@simonw \r\n\r\nNow I get this:\r\n\r\n```\r\n(app-root) sqlite-utils indexes global.db --table\r\nError: near \"(\": syntax error\r\n(app-root) sqlite-utils --version\r\nsqlite-utils, version 3.25.1\r\n(app-root) sqlite3 --version\r\n3.36.0 2021-06-18 18:36:39\r\n(app-root) python --version\r\nPython 3.8.11\r\n```\r\n\r\n\r\nDockerfile\r\n```\r\nFROM centos/python-38-centos7\r\n\r\nUSER root\r\n\r\nRUN yum update -y\r\nRUN yum upgrade -y\r\n\r\n\r\n# epel\r\nRUN yum -y install epel-release && yum clean all\r\n\r\n# SQLite\r\nRUN yum -y install zlib-devel geos geos-devel proj proj-devel freexl freexl-devel libxml2-devel \r\n\r\nWORKDIR /build/\r\nCOPY sqlite-autoconf-3360000.tar.gz ./\r\nRUN tar -zxf sqlite-autoconf-3360000.tar.gz\r\nWORKDIR /build/sqlite-autoconf-3360000\r\nRUN ./configure\r\nRUN make\r\nRUN make install\r\n\r\n# \r\nRUN /opt/app-root/bin/python3.8 -m pip install --upgrade pip\r\nRUN pip install sqlite-utils\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1145882578, "label": "`deterministic=True` fails on versions of SQLite prior to 3.8.3"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/408#issuecomment-1059097969", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/408", "id": 1059097969, "node_id": "IC_kwDOCGYnMM4_II1x", "user": {"value": 24938923, "label": "learning4life"}, "created_at": "2022-03-04T11:55:21Z", "updated_at": "2022-03-04T11:55:21Z", "author_association": "NONE", "body": "Thanks @simonw \r\n\r\nI will test it after my vacation \ud83d\udc4d", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1145882578, "label": "`deterministic=True` fails on versions of SQLite prior to 3.8.3"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/408#issuecomment-1056001414", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/408", "id": 1056001414, "node_id": "IC_kwDOCGYnMM4-8U2G", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-03-02T00:20:26Z", "updated_at": "2022-03-02T00:20:26Z", "author_association": "OWNER", "body": "I need a `db.sqlite_version` property to implement this check.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1145882578, "label": "`deterministic=True` fails on versions of SQLite prior to 3.8.3"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/408#issuecomment-1055996626", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/408", "id": 1055996626, "node_id": "IC_kwDOCGYnMM4-8TrS", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-03-02T00:12:21Z", "updated_at": "2022-03-02T00:12:21Z", "author_association": "OWNER", "body": "Here's the SQLite changelog mentioning that it was added in 3.8.3: https://www.sqlite.org/changes.html#version_3_8_3", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1145882578, "label": "`deterministic=True` fails on versions of SQLite prior to 3.8.3"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/408#issuecomment-1055995100", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/408", "id": 1055995100, "node_id": "IC_kwDOCGYnMM4-8TTc", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-03-02T00:10:41Z", "updated_at": "2022-03-02T00:10:41Z", "author_association": "OWNER", "body": "Here's the code in question:\r\n\r\nhttps://github.com/simonw/sqlite-utils/blob/521921b849003ed3742338f76f9d47ff3d95eaf3/sqlite_utils/db.py#L384-L394\r\n\r\nIt's checking for Python 3.8, because that's the version of Python that added the `deterministic=True` option: https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.create_function\r\n\r\nBut from your error message it looks like it should be checking the SQLite version too.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1145882578, "label": "`deterministic=True` fails on versions of SQLite prior to 3.8.3"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/408#issuecomment-1055993700", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/408", "id": 1055993700, "node_id": "IC_kwDOCGYnMM4-8S9k", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-03-02T00:08:10Z", "updated_at": "2022-03-02T00:08:10Z", "author_association": "OWNER", "body": "I thought I'd made it so `deterministic=True` would be silently ignored in environments that don't support it, but clearly I missed a case here!", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1145882578, "label": "`deterministic=True` fails on versions of SQLite prior to 3.8.3"}, "performed_via_github_app": null}