Title: Problems with WITHOUT ROWID tables · Issue #1332 · sqlitebrowser/sqlitebrowser · GitHub
Open Graph Title: Problems with WITHOUT ROWID tables · Issue #1332 · sqlitebrowser/sqlitebrowser
X Title: Problems with WITHOUT ROWID tables · Issue #1332 · sqlitebrowser/sqlitebrowser
Description: Official home of the DB Browser for SQLite (DB4S) project. Previously known as "SQLite Database Browser" and "Database Browser for SQLite". Website at: - Problems with WITHOUT ROWID tables · Issue #1332 · sqlitebrowser/sqlitebrowser
Open Graph Description: Official home of the DB Browser for SQLite (DB4S) project. Previously known as "SQLite Database Browser" and "Database Browser for SQLite". Website at: - Problems with WITHOUT ...
X Description: Official home of the DB Browser for SQLite (DB4S) project. Previously known as "SQLite Database Browser" and "Database Browser for SQLite". Website at: - Proble...
Opengraph URL: https://github.com/sqlitebrowser/sqlitebrowser
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problems with WITHOUT ROWID tables","articleBody":"### Details for the issue\r\n\r\n\u003c!--\r\n\r\nThanks for coming here to report an issue. :)\r\n\r\nPlease describe it in this section, fill out the correct check boxes\r\nbelow with an \"x\", then click the \"Submit new issue\" button at the bottom\r\n\r\n-->\r\n\r\nInteracting with a `WITHOUT ROWID` table causes multiple issues:\r\n\r\n\r\n```SQL\r\nCREATE TABLE test (item PRIMARY KEY, extra) WITHOUT ROWID;\r\nINSERT INTO test VALUES(\"test1\", 123);\r\nINSERT INTO test VALUES(\"'test2': 'value'\", 234);\r\n```\r\n\r\n1. Trying to delete the second row in DB4S by selecting it and clicking \"Delete Record\" fails with\r\n\r\n```\r\nexecuteSQL: \"DELETE FROM `test` WHERE `item` IN (''test2': 'value'');\" -> near \"test2\": syntax error\r\ndeleteRecord: \"near \\\"test2\\\": syntax error (DELETE FROM `test` WHERE `item` IN (''test2': 'value'');)\"\r\n```\r\n\r\nProbably because of the single quote characters.\r\n\r\nThis row vanishes in the \"Browse Data\" view, even though it wasn't actually deleted, and re-appears whenever this view gets refreshed.\r\n\r\n\r\n\r\n2. The `PRIMARY KEY` column is displayed twice:\r\n\r\n\r\n\r\nRight-clicking on the column headers and selecting and unselecting \"Show rowid column\" removes the first `item` column, until the \"Browse Data\" view gets refreshed. Afterwards the \"Filter\" entries in the first row are misaligned.\r\n\r\n\r\n\r\nAfter view refresh:\r\n\r\n\r\n\r\n\r\n\r\n\r\n### Useful extra information\r\n\r\n\u003c!-- The info below often helps, please fill it out if you're able to. :) -->\r\n\r\n#### I'm opening this issue because:\r\n\r\n- [ ] DB4S is crashing\r\n- [x] DB4S has a bug\r\n- [ ] DB4S needs a feature\r\n- [ ] DB4S has another problem\r\n\r\n#### I'm using DB4S on:\r\n\r\n- [ ] Windows: ( _version:_ ___ )\r\n- [x] Linux: ( _distro:_ ___ )\r\n- [ ] Mac OS: ( _version:_ ___ )\r\n- [ ] Other: ___\r\n\r\n#### I'm using DB4S version:\r\n\r\n- [x] 3.10.1\r\n- [ ] 3.10.0\r\n- [ ] 3.9.1\r\n- [ ] Other: ___\r\n\r\n#### I have also:\r\n\r\n- [ ] Tried out the latest nightly version: https://github.com/sqlitebrowser/sqlitebrowser#nightly-builds\r\n- [x] Searched for an existing similar issue: https://github.com/sqlitebrowser/sqlitebrowser/issues?utf8=%E2%9C%93&q=is%3Aissue%20\r\n","author":{"url":"https://github.com/mikf","@type":"Person","name":"mikf"},"datePublished":"2018-02-28T14:10:32Z","url":"https://github.com/sqlitebrowser/sqlitebrowser/issues/1332"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:9f74c658-060e-b169-bb9c-c12f6a96366a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2A0:25B7A4:1B5F9D:257239:6AFD8EFD |
| html-safe-nonce | af600c5daf21185cdb5e22f7fa3559b1d8f9c2da5bf0748d0602be1b42042150 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkEwOjI1QjdBNDoxQjVGOUQ6MjU3MjM5OjZBRkQ4RUZEIiwidmlzaXRvcl9pZCI6IjU3NjM4MjI3ODcwNTk2MTc1MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 42d061da7b8d64439489f2cdfbb6499a7e825bcae395467e7a7b86b218af8294 |
| hovercard-subject-tag | repository:19416551 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/sqlitebrowser/sqlitebrowser/issues/1332 |
| twitter:image | https://opengraph.githubassets.com/c2991a0b157aaf1c4afcf36045d754eeef2775923bbb6cf203f4d8f2f0728980/sqlitebrowser/sqlitebrowser |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2991a0b157aaf1c4afcf36045d754eeef2775923bbb6cf203f4d8f2f0728980/sqlitebrowser/sqlitebrowser |
| og:image:alt | Official home of the DB Browser for SQLite (DB4S) project. Previously known as "SQLite Database Browser" and "Database Browser for SQLite". Website at: - Problems with WITHOUT ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-cache |
| go-import | github.com/sqlitebrowser/sqlitebrowser git https://github.com/sqlitebrowser/sqlitebrowser.git |
| octolytics-dimension-user_id | 7454271 |
| octolytics-dimension-user_login | sqlitebrowser |
| octolytics-dimension-repository_id | 19416551 |
| octolytics-dimension-repository_nwo | sqlitebrowser/sqlitebrowser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 19416551 |
| octolytics-dimension-repository_network_root_nwo | sqlitebrowser/sqlitebrowser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width