Andrea Giudiceandrea
9625ba5a28
[dbmanager] Fix typo in dlg_versioning.py
2025-09-03 05:29:53 +10:00
github-actions[bot]
ec5dcbc949
auto-fix pre-commit issues
2025-07-23 03:37:29 +00:00
Nyall Dawson
a6943574aa
Update python/plugins/db_manager/db_plugins/vlayers/connector.py
...
Co-authored-by: Nicolas Godet <39594821+nicogodet@users.noreply.github.com>
2025-07-23 13:36:28 +10:00
TiGIS Sagl
33561f5f40
Fix missing attribute connection in VLayerConnector during init
...
This fix initialize the two variabiles connection and _uri in VLayerConnector as it is implemented in all the other db_plugins. This fix avoid a crash when __del__ is called in the class DBConnector that check is connection is null which does not exist in VLayerConnector.
2025-07-23 13:36:28 +10:00
Marco Bernasocchi
0acc52b3c9
Update info_model.py ( #62136 )
...
follow up #61908
2025-06-05 09:30:18 +10:00
Marco Bernasocchi
c1c9fc4cec
rename PostGIS to PostgreSQL in DB Manager
2025-06-05 09:30:18 +10:00
signedav
64ccd4dd2e
Get content of table according to the headers, what ensures that the content of the id and the geometry is in the right column. This fixes #50509
2025-03-29 15:21:57 +01:00
Denis Rouzaud
0f032e5f2d
run pre-commit on all files
2024-11-29 15:38:02 +01:00
gisn8
45d40ad071
Set raise error to DbError
...
Thanks! Much more user-friendly.
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2024-10-18 06:47:16 +10:00
gisn8
92fcb86be6
Fix: clean up whitespace and formatting issues caught by Flake8
2024-10-18 06:47:16 +10:00
gisn8
cad4759212
Handle invalid view names with more than one period
...
I've updated the code as recommended and added an error message should there there be too many periods. Thanks for the suggestion!
2024-10-18 06:47:16 +10:00
gisn8
70e9694a12
Addressing Issue #35767 to allow for view creation into specified schema from [ Create a view ] in DBManager
2024-10-18 06:47:16 +10:00
Julien Cabieces
b264c34245
fix(ColorProject): Add new methods in sql_dictionary
2024-10-01 14:03:55 +10:00
Julien Cabieces
6c2c9b7750
feat(Expression): Add project_color_object function
...
Which contrary to project_color doesn't return a string
representation there is no rgb conversion involved
2024-10-01 14:03:55 +10:00
Nyall Dawson
ace84affb6
Don't try to translate boolean object
...
Fix #58025
2024-07-09 08:42:11 +10:00
Matthias Kuhn
52f98f8c83
Merge pull request #57834 from m-kuhn/no_pyuic
...
[plugins] Remove dependency on pyuic
2024-06-30 08:44:08 +02:00
Matthias Kuhn
fd663cc021
[plugins] Remove dependency on pyuic
...
Eases plugin development and deployment
2024-06-22 14:34:06 +02:00
Andrea Giudiceandrea
a840ebff04
[db manager] Fix delete raster layer in GeoPackage
2024-06-13 01:53:55 +02:00
Even Rouault
07067d37b5
python/plugins: turn on GDAL exceptions to avoid deprecation warning
...
Fixes #57344
2024-05-22 13:34:35 +10:00
Andrea Giudiceandrea
94f56380f9
[db manager] Fix field property editing
2024-04-05 15:34:09 +10:00
José de Paula R. N. Assis
b815d34d1e
Using QElapsedTimer instead of QTime in DB Manager
2024-03-05 05:31:11 +10:00
José de Paula R. N. Assis
57d60c7161
DB Manager: tweaks for running Qt6
...
Small tweaks to running in Qt 6(removed obsolete method calls
QTime().start() and QTime().elapsed(), and changed an overloaded slot
(QComboBox::activated()) to a non-overloaded one (textActivated()).
2024-03-05 05:31:11 +10:00
Nyall Dawson
b45f68274c
Remove another compiled icon use
2024-02-28 11:23:47 +10:00
Nyall Dawson
86eb5daf9e
Remove unused class
2024-02-28 11:23:47 +10:00
Nyall Dawson
8459fe1468
Replace use of QRegExp in db manager
2024-01-31 10:55:33 +10:00
Sandro Santilli
4fbc42fd2b
Drop references to unused psycopg from db_manager
2024-01-25 18:03:38 +01:00
Alexander Bruy
b851e7cbe7
fix use of deprecated API in DB Manager ( fix #54916 )
2024-01-25 06:06:16 +10:00
Nyall Dawson
dd2f8a9d01
Upgrade enums
2024-01-22 19:02:40 +10:00
Nyall Dawson
e42abf7dc5
Update python files
2024-01-22 05:46:15 +10:00
Nyall Dawson
c16a1e2b3d
Update enums
2024-01-19 19:44:48 +10:00
Julien Cabieces
9d12ae8e6d
[PyQt6] Add scope for enums and get rid of PyQt5.XXX import
...
this has been done automatically with the following comand line
./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./python/plugins/
./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./tests/src/python/
2024-01-10 21:15:27 +10:00
Nyall Dawson
13bc09e706
Remove redundant "import qgis" lines from python files
...
These were only needed way back in the early days of qgis 3.0
transition, now they have no effect
2023-11-25 07:40:02 +10:00
nicogodet
8fb3352348
Raise error if PostgreSQL version can't be parsed
2023-08-30 09:45:40 +02:00
Nicolas Godet
138e6dad65
Use raw string
2023-08-29 10:46:53 +02:00
Nicolas Godet
8ebf323381
More robust retrieval for PostgreSQL version
2023-08-29 09:44:20 +02:00
Matthias Kuhn
1626b7e928
Move tests to QgisUnitTests
2023-07-07 14:29:28 +10:00
Alexander Bruy
d0c7c6e930
fix formula for exponential interpolation
...
The scale_exp function renamed to scale_polynomial and has an alias
scale_exp to preserve backward compatibility.
A new function using correct formula was added as scale_exponential.
2023-05-31 09:02:01 +10:00
Etienne Trimaille
8f33d5ee70
Upgrade DBManager and Grass plugins to Python 3.X
2023-04-26 08:24:00 +10:00
Matthias Kuhn
f591542ffe
Merge pull request #50740 from DelazJ/txIssues
2022-12-17 08:37:12 +01:00
Harrissou Sant-anna
d6b5b070d8
Remove unicode string notifier from python files
2022-12-11 08:58:21 +01:00
Harrissou Sant-anna
9f127b2815
More string fixes and make a few more available for translation
2022-12-11 07:37:55 +01:00
Harrissou Sant-anna
6a4684b94d
Solve misc issues reported in Transifex
2022-10-30 09:20:33 +01:00
Sandro Santilli
51da2ef551
Trust primary key of layers setup by DBManager TopoViewer plugin
...
Removes two very expensive queries per TopoViewer instance
Closes #47389
2022-02-16 16:35:37 +01:00
nicogodet
ea981d89f9
Homogenize toMapLayer function definition
2021-11-08 10:13:28 +11:00
nicogodet
40df6ec76b
Add geometryType() method to root Table class
2021-11-03 18:09:27 +01:00
Alessandro Pasotti
a329b88289
Fix DB manager trigger info dlg (less than)
...
Fix #45420
2021-10-19 05:37:20 +10:00
Augustin Trancart
061b810dac
Fix behaviour of triggers when logging an existing layer
...
When adding logging via db manager to an existing layer, all the
time_start of existing features are still null. When we modify one
feature for the first time, the update trigger fires and insert a row
for the past state of the feature. In turn, this fires the INSERT
trigger for this row, and the execution goes inside the `if
NEW.time_start is NULL`, which set the end timestamp to NULL, making the
old row still visible in the _current view.
In other word, the insert trigger makes the assumption that a null start
timestamp means now, which is not true in the case described above.
This commit fixes this assumption by initially setting it to `-infinity`
for existing rows.
2021-10-06 12:00:39 +10:00
Alessandro Pasotti
5a572dacaa
Fix DB manager postgis double query
...
Fixes #45318
2021-10-02 07:18:18 +10:00
Loïc Bartoletti
98ff01ea1c
Fix Z/M dimension URI via DB Manager. Fixes #34894 ( #45223 )
2021-09-28 21:14:45 +02:00
Andrea Giudiceandrea
828638f661
[DB Manager] Fix No Geometry tables
...
Avoid to add a nonexistent 'geometry' field to the fields list of No Geometry tables.
2021-04-23 08:25:14 +02:00