-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix transactions not being ignored when executing SQL #656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix transactions not being ignored when executing SQL #656
Conversation
Trying this out myself locally, as no-one else seems to be getting back to you about it. 😉 I've just tested this with a small data set, exported via our Export to SQL dialog. When loading that through the "Open SQL file" button in the Execute SQL tab, this seems to work decently. The data is successfully loaded, and can be seen through the Browse Data tab. Two items worth mentioning:
|
AFAIK, that I personally thought that an error actually occurred when I once inserted some data for work. But it really didn't have any error, so I think that that message is just weird. And, forgot about that method. If you know and can point me directly to the code that imports it, I'll make another commit on this PR or open another PR. But don't know if I can do it soon. |
This seems to be where the SQL importing function is called: https://github.com/sqlitebrowser/sqlitebrowser/blob/master/src/MainWindow.cpp#L1148 Which seems to be defined here: https://github.com/sqlitebrowser/sqlitebrowser/blob/master/src/sqlitedb.cpp#L613-L678 Workable? 😄 |
@justinclift, I totally forgot that this one was not merged. I just pushed a commit that hopefully solves it using Git2Go (for the first time). Can you test it please? |
@revolter That commit is failing on Travis:
If you want to look into it then great. If not, get started on your holiday and I'll take a look over the weekend. 😄 |
Already solved it, I guess :P |
Nope... Travis just barfed again. 😏 |
The message this time:
|
Three things:
|
@justinclift, The Travis is happy now, do you have time to test it? 😄 |
Awesome @revolter. 😀 Just tested it here on a sample data set. Now importing works via either File → Import, and via the Execute SQL tab. Merging it in a sec (will remember to choose the "Squash commits" option this time! 😉) |
Related to #653.