{"html_url": "https://github.com/simonw/sqlite-utils/issues/425#issuecomment-1509951952", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/425", "id": 1509951952, "node_id": "IC_kwDOCGYnMM5aAAnQ", "user": {"value": 89400147, "label": "Dhyanesh97"}, "created_at": "2023-04-15T20:14:58Z", "updated_at": "2023-04-15T20:14:58Z", "author_association": "NONE", "body": "is this change released ? Because when we run docker containers issue still persists for production deployments.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1203842656, "label": "`sqlite3.NotSupportedError`: deterministic=True requires SQLite 3.8.3 or higher"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/425#issuecomment-1129332959", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/425", "id": 1129332959, "node_id": "IC_kwDOCGYnMM5DUEDf", "user": {"value": 102771161, "label": "McEazy2700"}, "created_at": "2022-05-17T21:27:02Z", "updated_at": "2022-05-17T21:27:02Z", "author_association": "NONE", "body": "Hi, I'm trying to deploy my site using elasticbeanstalk and I keep getting this same error :\r\ndeterministic=True requires SQLite 3.8.3 or higher\r\n\r\nI saw your previous solution that involves editing sqlite-utils/sqlite_utils/db.py file, but I'm curious as to how that will work in production.", "reactions": "{\"total_count\": 5, \"+1\": 5, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1203842656, "label": "`sqlite3.NotSupportedError`: deterministic=True requires SQLite 3.8.3 or higher"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/425#issuecomment-1101594549", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/425", "id": 1101594549, "node_id": "IC_kwDOCGYnMM5BqP-1", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-04-18T17:36:14Z", "updated_at": "2022-04-18T17:36:14Z", "author_association": "OWNER", "body": "Releated:\r\n- #408", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1203842656, "label": "`sqlite3.NotSupportedError`: deterministic=True requires SQLite 3.8.3 or higher"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/425#issuecomment-1098545390", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/425", "id": 1098545390, "node_id": "IC_kwDOCGYnMM5Benju", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-04-13T22:34:52Z", "updated_at": "2022-04-13T22:34:52Z", "author_association": "OWNER", "body": "That broke Python 3.7 because it doesn't support `deterministic=True` even being passed:\r\n\r\n> function takes at most 3 arguments (4 given)", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1203842656, "label": "`sqlite3.NotSupportedError`: deterministic=True requires SQLite 3.8.3 or higher"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/425#issuecomment-1098537000", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/425", "id": 1098537000, "node_id": "IC_kwDOCGYnMM5Belgo", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-04-13T22:18:22Z", "updated_at": "2022-04-13T22:18:22Z", "author_association": "OWNER", "body": "I figured out a workaround in https://github.com/simonw/sqlite-utils/issues/421#issuecomment-1098535531\r\n\r\nThe current `register(fn)` method looks like this: https://github.com/simonw/sqlite-utils/blob/95522ad919f96eb6cc8cd3cd30389b534680c717/sqlite_utils/db.py#L389-L403\r\n\r\nThis alternative implementation worked in the environment where that failed:\r\n\r\n```python\r\n def register(fn):\r\n name = fn.__name__\r\n arity = len(inspect.signature(fn).parameters)\r\n if not replace and (name, arity) in self._registered_functions:\r\n return fn\r\n kwargs = {}\r\n done = False\r\n if deterministic:\r\n # Try this, but fall back if sqlite3.NotSupportedError\r\n try:\r\n self.conn.create_function(name, arity, fn, **dict(kwargs, deterministic=True))\r\n done = True\r\n except sqlite3.NotSupportedError:\r\n pass\r\n if not done:\r\n self.conn.create_function(name, arity, fn, **kwargs)\r\n self._registered_functions.add((name, arity))\r\n return fn\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1203842656, "label": "`sqlite3.NotSupportedError`: deterministic=True requires SQLite 3.8.3 or higher"}, "performed_via_github_app": null}