Title: CASE-SENSITIVITY: Error importing data from SQL file: cannot start a transaction within a transaction · Issue #1764 · sqlitebrowser/sqlitebrowser · GitHub
Open Graph Title: CASE-SENSITIVITY: Error importing data from SQL file: cannot start a transaction within a transaction · Issue #1764 · sqlitebrowser/sqlitebrowser
X Title: CASE-SENSITIVITY: Error importing data from SQL file: cannot start a transaction within a transaction · Issue #1764 · sqlitebrowser/sqlitebrowser
Description: Details for the issue What did you do? File > New In-Memory Database Modal: Edit table definition > Cancel File > Import... > Database from SQL file... Modal: Create new database > No export.sql: begin transaction; create table names( id...
Open Graph Description: Details for the issue What did you do? File > New In-Memory Database Modal: Edit table definition > Cancel File > Import... > Database from SQL file... Modal: Create new database > No export.sql: b...
X Description: Details for the issue What did you do? File > New In-Memory Database Modal: Edit table definition > Cancel File > Import... > Database from SQL file... Modal: Create new database > N...
Opengraph URL: https://github.com/sqlitebrowser/sqlitebrowser/issues/1764
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CASE-SENSITIVITY: Error importing data from SQL file: cannot start a transaction within a transaction","articleBody":"Details for the issue\r\n--------------------\r\n\r\n#### What did you do?\r\n\r\n1. File > New In-Memory Database\r\n2. Modal: _Edit table definition_ > Cancel\r\n3. File > Import... > Database from SQL file...\r\n4. Modal: _Create new database_ > No\r\n\r\n`export.sql`:\r\n\r\n``` sql\r\nbegin transaction;\r\ncreate table names(\r\n id integer primary key,\r\n name text unique\r\n);\r\ncommit;\r\n```\r\n\r\n\r\n#### What did you expect to see?\r\n\r\nMy SQL file imported into the in-memory database\r\n\r\n\r\n#### What did you see instead?\r\n\r\nAlert: \r\n> Error importing data: Error in statement #\u003cspan>\u003c/span>1: cannot start a transaction within a transaction. Aborting execution and rolling back\r\n\r\n\r\n#### Other notes\r\n\r\nUsing this file instead produces no error:\r\n\r\n`export-case-sensitive.sql`:\r\n\r\n``` sql\r\nBEGIN TRANSACTION;\r\nCREATE TABLE names(\r\n id integer PRIMARY KEY,\r\n name text UNIQUE\r\n);\r\nCOMMIT;\r\n```\r\n\r\n\r\nUseful extra information\r\n-------------------------\r\n\r\nmacOS: _10.14.3_ \r\nDB4S: _3.11.1 r2_\r\n\r\n\r\n#### Did you also\r\n\r\n- [ ] [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\nPossibly related to #568, #675\r\n","author":{"url":"https://github.com/jsejcksn","@type":"Person","name":"jsejcksn"},"datePublished":"2019-02-24T02:21:12Z","url":"https://github.com/sqlitebrowser/sqlitebrowser/issues/1764"}
| 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:f2378cb8-0dba-6691-413a-32575fc932dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDC4:C816B:18DA96:22D4B6:6AFDAE1D |
| html-safe-nonce | ba08014c825ca9db635e9aa874a1df7f111a4785838fa9b26dec75f30a1c8d5d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREM0OkM4MTZCOjE4REE5NjoyMkQ0QjY6NkFGREFFMUQiLCJ2aXNpdG9yX2lkIjoiOTg4NzcyODIxMzMwOTMxMjI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 358b51af7b5d08d2bdbb73241f2e9189d33f2700edbe9d74c6111817e4f8d50a |
| hovercard-subject-tag | issue:413772403 |
| 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/1764/issue_layout |
| twitter:image | https://opengraph.githubassets.com/669437ff58cfa7b830ed8e66f8c4ab8fd61dad5f440af71a950e3e108acf0f40/sqlitebrowser/sqlitebrowser/issues/1764 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/669437ff58cfa7b830ed8e66f8c4ab8fd61dad5f440af71a950e3e108acf0f40/sqlitebrowser/sqlitebrowser/issues/1764 |
| og:image:alt | Details for the issue What did you do? File > New In-Memory Database Modal: Edit table definition > Cancel File > Import... > Database from SQL file... Modal: Create new database > No export.sql: b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jsejcksn |
| 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 | 0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width