Title: Wrong column name in CHECK when trying to modify a table column · Issue #1817 · sqlitebrowser/sqlitebrowser · GitHub
Open Graph Title: Wrong column name in CHECK when trying to modify a table column · Issue #1817 · sqlitebrowser/sqlitebrowser
X Title: Wrong column name in CHECK when trying to modify a table column · Issue #1817 · sqlitebrowser/sqlitebrowser
Description: Details for the issue What did you do? Tried to modify a table using the "modify table" button. Simple example table, renaming is_alpha to is_beta: CREATE TABLE `test` ( `id` INTEGER NOT NULL, `is_alpha` BOOLEAN, CHECK(is_alpha IN (0,1))...
Open Graph Description: Details for the issue What did you do? Tried to modify a table using the "modify table" button. Simple example table, renaming is_alpha to is_beta: CREATE TABLE `test` ( `id` INTEGER NOT NULL, `is_...
X Description: Details for the issue What did you do? Tried to modify a table using the "modify table" button. Simple example table, renaming is_alpha to is_beta: CREATE TABLE `test` ( `id` INTEGER NOT ...
Opengraph URL: https://github.com/sqlitebrowser/sqlitebrowser/issues/1817
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong column name in CHECK when trying to modify a table column","articleBody":"Details for the issue\r\n--------------------\r\n\r\n#### What did you do?\r\nTried to modify a table using the \"modify table\" button.\r\nSimple example table, renaming is_alpha to is_beta:\r\n```\r\nCREATE TABLE `test` (\r\n\t`id`\tINTEGER NOT NULL,\r\n\t`is_alpha`\tBOOLEAN,\r\n\tCHECK(is_alpha IN (0,1)),\r\n\tPRIMARY KEY(`id`)\r\n);\r\n```\r\n\r\n#### What did you expect to see?\r\nThe renamed table column as in:\r\n```\r\nCREATE TABLE `test` (\r\n\t`id`\tINTEGER NOT NULL,\r\n\t`is_beta`\tBOOLEAN,\r\n\tCHECK(is_beta IN (0,1)),\r\n\tPRIMARY KEY(`id`)\r\n);\r\n```\r\n\r\n#### What did you see instead?\r\nThe following error message: \r\n\r\n```\r\nModifying this column failed. Error returned from database:\r\nCreating new table failed. DB says: no such column: is_alpha (CREATE TABLE \"sqlb_temp_table_3\" (\r\n\t\"id\"\tINTEGER NOT NULL,\r\n\t\"is_beta\"\tBOOLEAN,\r\n\tCHECK(is_alpha IN (0,1)),\r\n\tPRIMARY KEY(\"id\")\r\n);)\r\n```\r\n\r\nProblem appears to be the **CHECK(is_alpha IN (0,1)),**, which should be **CHECK(is_beta IN (0,1)),**\r\n\r\nUseful extra information\r\n-------------------------\r\n\r\nThe info below often helps, please fill it out if you're able to. :)\r\n\r\n#### What operating system are you using?\r\n\r\n- [ ] Windows: ( _version:_ ___ )\r\n- [ ] Linux: ( _distro:_ ___ )\r\n- [x] Mac OS: ( _version:_ 10.14.4 )\r\n- [ ] Other: ___\r\n\r\n#### What is your DB4S version?\r\n\r\n- [ ] 3.11.1\r\n- [ ] 3.11.0\r\n- [ ] 3.10.1\r\n- [x] Other: 3.11.99 (Mar 24 2019)\r\n\r\n#### Did you also\r\n\r\n- [x] Try out the latest nightly version: https://github.com/sqlitebrowser/sqlitebrowser#nightly-builds\r\n- [x] Search for an existing similar issue: https://github.com/sqlitebrowser/sqlitebrowser/issues?utf8=%E2%9C%93&q=is%3Aissue%20\r\n\r\nTried the current nightly after starting this bug report on the \"old\" bug that the spaces were missing around the IN in the CHECK statement (on 3.10.1 at least).","author":{"url":"https://github.com/the-holger","@type":"Person","name":"the-holger"},"datePublished":"2019-03-24T12:58:27Z","url":"https://github.com/sqlitebrowser/sqlitebrowser/issues/1817"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f343fbe6-8a45-9251-8a8d-ffc2078fe14e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FD0:3CD8C0:218957:2C8CBE:6AFD02FD |
| html-safe-nonce | 42ab3a6adb6acd4b5f7edde3199c46be8ef9ce451eb5907862139347626e7fe2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkQwOjNDRDhDMDoyMTg5NTc6MkM4Q0JFOjZBRkQwMkZEIiwidmlzaXRvcl9pZCI6IjMwNzY2MDU2NTE4MDY0NjE0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d5066068204e56c9bae2cb0c4c23cd2f7ea06093d7cc7d722eb77441fa862cea |
| hovercard-subject-tag | issue:424610173 |
| 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/_view_fragments/issues/show/sqlitebrowser/sqlitebrowser/1817/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6fa9a705cdb5ab06410330ba908a9d61ce24d6df346033bc0b7459fe82ee5d4d/sqlitebrowser/sqlitebrowser/issues/1817 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6fa9a705cdb5ab06410330ba908a9d61ce24d6df346033bc0b7459fe82ee5d4d/sqlitebrowser/sqlitebrowser/issues/1817 |
| og:image:alt | Details for the issue What did you do? Tried to modify a table using the "modify table" button. Simple example table, renaming is_alpha to is_beta: CREATE TABLE `test` ( `id` INTEGER NOT NULL, `is_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | the-holger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8fd5a24ae29aa78df114eaaf1f9a839e8c3b7c0d27549e4f54678bb7cf3166d4 |
| turbo-cache-control | no-preview |
| 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 | dd0990b833f227378ab84f1d9519db1a04660550 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width