{"html_url": "https://github.com/simonw/sqlite-utils/issues/73#issuecomment-572870032", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/73", "id": 572870032, "node_id": "MDEyOklzc3VlQ29tbWVudDU3Mjg3MDAzMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-01-10T04:38:41Z", "updated_at": "2020-01-10T04:38:41Z", "author_association": "OWNER", "body": "Odd.. I'm not able to replicate that error. Here's what I got:\r\n\"Tony_Bug\"\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 545407916, "label": "upsert_all() throws issue when upserting to empty table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/74#issuecomment-572871797", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/74", "id": 572871797, "node_id": "MDEyOklzc3VlQ29tbWVudDU3Mjg3MTc5Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-01-10T04:47:55Z", "updated_at": "2020-01-10T04:47:55Z", "author_association": "OWNER", "body": "This is odd. I'd love to see more about that result object.\r\n\r\nCould you try running `pytest --pdb` and then `result.exit_code, result.exception` in the PDB prompt, something like this?\r\n\r\n```\r\n$ pytest --pdb\r\n========================================================= test session starts =========================================================\r\nplatform darwin -- Python 3.7.4, pytest-5.2.2, py-1.8.0, pluggy-0.13.0\r\nrootdir: /Users/simonw/Dropbox/Development/sqlite-utils\r\nplugins: cov-2.8.1\r\ncollected 216 items \r\n\r\ntests/test_black.py s [ 0%]\r\ntests/test_cli.py F\r\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> traceback >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\r\n\r\ndb_path = '/private/var/folders/bl/5x847xbj2yb7xmp7f2tz7l280000gn/T/pytest-of-simonw/pytest-3/test_tables0/test.db'\r\n\r\n def test_tables(db_path):\r\n result = CliRunner().invoke(cli.cli, [\"tables1\", db_path])\r\n> assert '[{\"table\": \"Gosh\"},\\n {\"table\": \"Gosh2\"}]' == result.output.strip()\r\nE assert '[{\"table\": \"...e\": \"Gosh2\"}]' == ''\r\nE - [{\"table\": \"Gosh\"},\r\nE - {\"table\": \"Gosh2\"}]\r\n\r\ntests/test_cli.py:28: AssertionError\r\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> entering PDB >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\r\n\r\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> PDB post_mortem (IO-capturing turned off) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\r\n> /Users/simonw/Dropbox/Development/sqlite-utils/tests/test_cli.py(28)test_tables()\r\n-> assert '[{\"table\": \"Gosh\"},\\n {\"table\": \"Gosh2\"}]' == result.output.strip()\r\n(Pdb) result.exit_code, result.exception\r\n(1, OperationalError('near \"/\": syntax error'))\r\n```\r\n\r\nThat should show the exception that caused the script to fail to run.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 546073980, "label": "Test failures on openSUSE 15.1: AssertionError: Explicit other_table and other_column"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/73#issuecomment-573047321", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/73", "id": 573047321, "node_id": "MDEyOklzc3VlQ29tbWVudDU3MzA0NzMyMQ==", "user": {"value": 82988, "label": "psychemedia"}, "created_at": "2020-01-10T14:02:56Z", "updated_at": "2020-01-10T14:09:23Z", "author_association": "NONE", "body": "Hmmm... just tried with installs from pip and the repo (v2.0.0 and v2.0.1) and I get the error each time (start of second run through the second loop).\r\n\r\nCould it be sqlite3? I'm on 3.30.1.\r\n\r\nUPDATE: just tried it on jupyter.org/try and I get the error there, too.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 545407916, "label": "upsert_all() throws issue when upserting to empty table"}, "performed_via_github_app": null}