Files
sqlitebrowser/src
mgrojo 6d44c6d412 User SQL log with results and other fixes and improvements in Execute SQL
## Enhancements
1.  Following suggestions in issue #1448, I've added the filename, line
references and results to the User log dock as comments. The same output
for the last query goes to the usual SQL results widget. The multiple
statement executions are therefore added while executing and not in a
block that might eventually not being executed.

2. I added a busy mouse cursor for giving hint to user when there is a query
in execution and when it has finished.

3. The cursor moves to the erroneous line if the query ends with error.

## Fixes

1. The error indicators where sometimes displaced. This was caused by
manipulations of the query before passing it to SQLite. Whitespace and
comments are discarded by SQLite, so it is better to just let it ignore
them. The only visible change seems that they might be recorded in the log or
or be decorated as error when they are adjacent to the next query.
Transaction bits are replaced by the same amount of spaces, so the
character indexing inside the query isn't perturbed.

2. The default case for the sqlite3_step has been changed to an error case
since all the possible non-error cases have already been treated.
Otherwise constraint errors in INSERT statements (for example) are not
indicated as errors, but the query execution ends anyway.
2018-06-30 14:13:54 +02:00
..
2017-10-30 21:20:02 +01:00
2018-06-08 23:51:14 +02:00
2017-12-23 22:19:17 +01:00
2018-05-16 18:26:48 +02:00
2017-10-30 21:20:02 +01:00
2017-10-30 21:20:02 +01:00
2017-10-30 21:20:02 +01:00
2017-10-30 21:20:02 +01:00
2017-10-30 21:20:02 +01:00
2014-12-05 09:20:29 +00:00
2014-12-05 09:20:29 +00:00
2018-06-08 22:46:47 +02:00
2018-06-08 22:46:47 +02:00
2018-06-08 22:46:47 +02:00
2018-06-08 22:46:47 +02:00
2017-12-23 22:19:17 +01:00
2017-10-30 21:20:02 +01:00
2017-10-30 21:20:02 +01:00