Andrea Giudiceandrea
57f589dd36
[dbmanager] Fix deprecation warning
...
Replace deprecated QgsCodeEditor setMarginVisible() with setLineNumbersVisible() for SQL dialog windows
2021-03-29 08:18:39 +10:00
Julien Cabieces
1821d7af47
Run providers tests in different CI jobs
2021-03-23 10:53:38 +01:00
Marco Bernasocchi
60f788c91d
Allow loading GPKG layers with GEOMETRY type ( #42253 )
2021-03-16 15:58:55 +01:00
Nyall Dawson
1040fe8705
Don't silently swallow exceptions in python context managers
...
Notably this causes processing modules to silently fail to load
without any warnings if the required dependancies (such as pyscopg2)
are not installed
2021-03-04 07:39:47 +10:00
Morten Sickel
ead85b1004
Make the db managers import function more robust towards (some types of) invalid layers.
...
Fix #41152
2021-01-27 18:17:17 +10:00
Evan Derickson
d79100a204
List comprehension formatting
2021-01-24 16:34:35 -08:00
Evan Derickson
fe184e8e71
Formatting list comprehension
2021-01-24 16:34:03 -08:00
Evan Derickson
63e77371f6
List comprehensions to generators
2021-01-24 16:26:53 -08:00
Evan Derickson
8cd0f92139
Undo removal of else
2021-01-24 16:09:53 -08:00
Evan Derickson
beefb9ed45
Replace str format with str cast
2021-01-23 20:09:01 -08:00
Evan Derickson
4e41ee6db2
More list comprehensions, str.join()
2021-01-23 20:06:27 -08:00
Evan Derickson
4b50c1a7a7
For loops to list comprehension
2021-01-23 16:06:29 -08:00
Alessandro Pasotti
3a2b8f889a
Optimize column information
2020-12-21 11:36:47 +01:00
Matthias Kuhn
bcbf71ea2f
Merge pull request #39947 from m-kuhn/db_mgr_error
...
[db manager] Show error messages directly in place
2020-11-29 20:33:43 +01:00
Matthias Kuhn
2a30091f2c
Remove unused import
2020-11-25 20:44:16 +01:00
Matthias Kuhn
2b6eb652a4
Use Scintilla for word wrap
2020-11-25 20:42:30 +01:00
Alessandro Pasotti
6cbbf5ebd1
DB manager: PG read enum value for sslmode
...
Fixes #38245
2020-11-16 13:13:21 +10:00
Denis Rouzaud
eddf6feb45
modernize CMakeLists.txt files
2020-11-12 07:14:46 +10:00
Matthias Kuhn
0a0d27c980
[db manager] Show error messages directly in place
...
The old behavior was to open up a new modal dialog. Each time way to small to read anything
2020-11-10 23:02:37 +01:00
Nyall Dawson
8c623b268e
Revert "DB manager: PG read enum value for sslmode"
...
This reverts commit 26e9ec98e76591286576d2dde098578877bef9c0.
It results in unfixable crashes on many platforms, likely due to some
issue in sip itself
Fixes #38393 , reopens #38245
The original bug (being asked twice for credentials) is preferable
over a hard crash
2020-10-23 08:22:15 +10:00
Alessandro Pasotti
eb3c78d12d
DB manager fix add comment while creating table
...
Fixes #38394
2020-09-25 10:56:13 +02:00
Alessandro Pasotti
3b6178ad3b
Merge pull request #38981 from elpaso/bugfix-gh38975-and-other-db-manager-issues
...
Bugfix gh38975 and other db manager issues
2020-09-24 18:42:56 +02:00
Alessandro Pasotti
871f534ef9
Fix PG db-manager rename schema
...
Fixes #38998
2020-09-24 14:23:26 +02:00
Alessandro Pasotti
9880a751a9
DB manager Fix SHOW in PG queries
...
Fixes #8975
2020-09-23 15:14:04 +02:00
Alessandro Pasotti
063b8daab3
Merge pull request #38940 from elpaso/bugfix-gh38092-executesql-feedback-followup
...
Be smart when adding limit: followup #8092
2020-09-22 11:32:27 +02:00
Alessandro Pasotti
ef02c54252
Be smart when adding limit: followup #8092
2020-09-22 09:26:13 +02:00
Juergen E. Fischer
a15fff158a
Translation string fix
2020-09-22 09:12:15 +02:00
Alessandro Pasotti
6d866e3341
Address PR comments
2020-09-21 14:02:24 +02:00
Alessandro Pasotti
2dfc072fe7
Spellchecker, how picky you are
2020-09-19 11:30:55 +02:00
Alessandro Pasotti
d54c3101ae
Add feedback to executeSql
...
Fixes #38092 by adding an optional QgsFeedback argument to
the executeSql method and by implementing the PQCancel
method in the PG provider internals.
While the cancellation works well for all supported provider while
fetching results in the loop, the cancellation of a running query is now
implemented for the postgres provider connection only because the GPKG
and GDAL both rely on GDALDatasetExecuteSQL which cannot be interrupted.
This PR also introduce a few optimizations in the PG DB-Manager
code that should probably fix also other "slowness" issues that
were reported after 3.x during PG query execution.
A small UX change in th SQL dialog makes it evident to the user that
a cancellation request has been sent to the backend: the button text
is changed to "Cancellation requested, please wait..." so that for
provider connections that are not able to interrupt the running query
and must wait for the fetching loop to exit from the exeuteSql call
the user knows that something is happening and that a cancellation
request has been successfully sent.
2020-09-19 11:15:41 +02:00
Matthias Kuhn
e4a767a39a
Remove "Update options" button
...
It's hard to guess for a user what the button does.
And easy to achieve the same by changing the layer in the dropdown
2020-09-02 08:43:26 +10:00
Alessandro Pasotti
26e9ec98e7
DB manager: PG read enum value for sslmode
...
Fixes #38245
2020-08-13 12:48:02 +02:00
Ludovic
6247cde584
svg file reduced with svgcleaner
2020-07-07 13:32:51 +02:00
Alessandro Pasotti
21f6f576b9
Fix DB manager date time display in SQL window
...
Fixes #35140
2020-06-09 08:35:31 +10:00
nirvn
291ba7f2dc
{Qgis,QGis} -> QGIS
2020-06-06 17:45:43 +07:00
nirvn
341b3d8c20
[dbmanager] Qgis -> QGIS
2020-06-06 17:45:43 +07:00
Matthias Kuhn
9729a43df7
Merge pull request #36828 from m-kuhn/followup_36823
...
Address review comment from #36823
2020-05-30 11:25:20 +02:00
Matthias Kuhn
ffc5033976
Merge pull request #36827 from m-kuhn/win_newlines
...
Fix windows newlines replacement in db manager query layer
2020-05-30 11:24:40 +02:00
Matthias Kuhn
b1307d241c
Address review comment from #36823
2020-05-29 16:29:46 +02:00
Matthias Kuhn
d8fa7e2df4
Fix windows newlines replacement in db manager query layer
...
Fixes #36825
2020-05-29 15:50:09 +02:00
Alessandro Pasotti
dc2ff12c2b
DB Manager: remove semicolon from SQL window queries
...
Partial fix for #36205
2020-05-29 12:38:45 +02:00
Juergen E. Fischer
b1edb5e70c
test_defwindowtitle.sh: also check Dialog
2020-05-16 20:55:59 +02:00
Nyall Dawson
b6a7a10703
Fix some more python formatting issues, remove more flake exceptions
2020-05-11 11:41:50 +10:00
Alexander Bruy
8e2a9d5797
Merge pull request #36232 from alexbruy/close-prompt
...
prompt before closing SQL editor tabs with unsaved changes (fix #14636 )
2020-05-06 19:17:10 +03:00
Alexander Bruy
bba874cd42
prompt before closing SQL editor tabs with unsaved changes ( fix #14636 )
2020-05-06 12:49:18 +03:00
Matthias Kuhn
0afe134076
Noqa
2020-05-05 23:43:27 +02:00
Matthias Kuhn
9eae0caa09
Add missing imports
2020-05-05 22:39:16 +02:00
Matthias Kuhn
a7e0831dcf
Code style
2020-05-05 22:38:37 +02:00
José de Paula Rodrigues Neto Assis
304a3d9509
Comment clarifying query against pg_catalog
2020-04-26 15:02:43 -03:00
José de Paula Rodrigues Neto Assis
689bcc6020
Handle CONSTRAINT TRIGGER on DB Manager/PostgreSQL.
...
Fixes #35967
2020-04-24 11:27:43 -03:00