Title: Saving Changes Fail After Adding New Record And Amending Primary Key Field · Issue #1049 · sqlitebrowser/sqlitebrowser · GitHub
Open Graph Title: Saving Changes Fail After Adding New Record And Amending Primary Key Field · Issue #1049 · sqlitebrowser/sqlitebrowser
X Title: Saving Changes Fail After Adding New Record And Amending Primary Key Field · Issue #1049 · sqlitebrowser/sqlitebrowser
Description: Details for the issue I have a database with a table, generated by a nhibernate schema: CREATE TABLE "ASD.Order" ( "ID" integer PRIMARY KEY AUTOINCREMENT, "Nr" NUMERIC NOT NULL, "Version" INT NOT NULL, "Order" TEXT, "Article" NUMERIC NOT...
Open Graph Description: Details for the issue I have a database with a table, generated by a nhibernate schema: CREATE TABLE "ASD.Order" ( "ID" integer PRIMARY KEY AUTOINCREMENT, "Nr" NUMERIC NOT NULL, "Version" INT NOT N...
X Description: Details for the issue I have a database with a table, generated by a nhibernate schema: CREATE TABLE "ASD.Order" ( "ID" integer PRIMARY KEY AUTOINCREMENT, "Nr" NUMERIC...
Opengraph URL: https://github.com/sqlitebrowser/sqlitebrowser/issues/1049
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Saving Changes Fail After Adding New Record And Amending Primary Key Field","articleBody":"### Details for the issue\r\n\r\nI have a database with a table, generated by a nhibernate schema:\r\n\r\n```\r\nCREATE TABLE \"ASD.Order\" (\r\n\t\"ID\" integer PRIMARY KEY AUTOINCREMENT,\r\n\t\"Nr\" NUMERIC NOT NULL,\r\n\t\"Version\" INT NOT NULL,\r\n\t\"Order\" TEXT,\r\n\t\"Article\" NUMERIC NOT NULL,\r\n\t\"Amount\" NUMERIC,\r\n\t\"TargetDate\"\tDATETIME,\r\n\t\"Date2\" DATETIME,\r\n\t\"CustomerDate\" DATETIME,\r\n\t\"Info2\" TEXT,\r\n\t\"PreviousOrder\" NUMERIC,\r\n\t\"OrderType\" TEXT,\r\n -- unneccessary\r\n\t-- FOREIGN KEY(\"Article\") REFERENCES \"ASD.Article\"(\"ArticleNr\"));\r\n```\r\n\r\n**\"Save changes\" fails:**\r\n- Select table \"Order\" in GUI\r\n- Insert a new Record using the \"new record\" button.\r\n- Edit the columns in the new record (ID, Nr, Order, Amount...) \r\n- Click \"Save changes\"\r\n- Click \"reload\" of the target table (Order)\r\n\r\nCurrent Behaviour:\r\n- _The data in the inserted record(s) dissappears_\r\n\r\nExpected Behaviour:\r\n- The data in the tables/records gets validated and saved in db-file.\r\nor\r\n- The save fails with a error message in a message box with information what's the corrupted data.\r\n\r\n### Useful extra information\r\n\r\nThe foreign keys are not important cause they are valid (the ArticleNr exists).\r\n\r\nMaybe, it's because i change the ID-Column (autoincrement primary key).\r\nWhen i insert a new record and change the ID, (following instructions above) the bug appears.\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- [x] Windows: ( _version:_ _8.1 64bit (updates installed)__ )\r\n- [ ] 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.9.1\r\n- [ ] 3.9.0\r\n- [ ] Other: ___\r\n\r\n#### I have also:\r\n\r\n- [x] 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/perahoky","@type":"Person","name":"perahoky"},"datePublished":"2017-06-29T11:39:27Z","url":"https://github.com/sqlitebrowser/sqlitebrowser/issues/1049"}
| 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:0a01e8f8-30a6-153e-a8f7-d7d679db4fca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 902E:20243E:16AA6F:1ED986:6AFD8F3B |
| html-safe-nonce | 4b9464c1e195180938ba2797a8db8102fc16e02c941814bed7636b1b63cfdc8f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDJFOjIwMjQzRToxNkFBNkY6MUVEOTg2OjZBRkQ4RjNCIiwidmlzaXRvcl9pZCI6IjY5MTU1NjMyMDU3MjQ4MzU2NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | beeaf7b3aa8cf3ea852627c3ca6a4c74414b4bb6c9c3aa64fc8ce47cb754ab3a |
| hovercard-subject-tag | issue:239450729 |
| 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/1049/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6b46fc2f8669106b6467a4731318c94b01f8f4f16b15cc12d789568addcff88e/sqlitebrowser/sqlitebrowser/issues/1049 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6b46fc2f8669106b6467a4731318c94b01f8f4f16b15cc12d789568addcff88e/sqlitebrowser/sqlitebrowser/issues/1049 |
| og:image:alt | Details for the issue I have a database with a table, generated by a nhibernate schema: CREATE TABLE "ASD.Order" ( "ID" integer PRIMARY KEY AUTOINCREMENT, "Nr" NUMERIC NOT NULL, "Version" INT NOT N... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | perahoky |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| 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 | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width