31 Commits

Author SHA1 Message Date
Nyall Dawson
b6a7a10703 Fix some more python formatting issues, remove more flake exceptions 2020-05-11 11:41:50 +10:00
Alexander Bruy
bba874cd42 prompt before closing SQL editor tabs with unsaved changes (fix #14636) 2020-05-06 12:49:18 +03:00
Etienne Trimaille
37803810eb
fix combobox ID not having correct checked state when we update a SQL layer 2019-09-13 17:46:38 +02:00
Nyall Dawson
ef8d893393 More QgsMapLayer python fixes 2019-03-27 09:11:15 +10:00
Nyall Dawson
ac651ee0d9 Followup 8d51a693, fix broken plugins 2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1 missing changes of QgsMapLayer::Type => QgsMapLayerType 2019-03-26 14:09:19 -05:00
Etienne Trimaille
ac9c6f1e18 some minor code cleanup in dbmanager 2019-02-05 10:48:47 +11:00
Alessandro Pasotti
b5181f2c50 sqlite accept aliased queries from db manager
Fixes #20674 - DB Manager - load sql query as layer with geom column

Well, not sure it really fixes that particular issue because it
is not really well described, but for sure this fixes the general
case of "SELECT * FROM my_table AS my_alias"
2018-12-08 11:15:49 +01:00
rldhont
2eb22d93ff [BUGFIX][DbManager] SQL Layer: fix unique combo setting in QGIS 3
When opening Update SQL layer, the unique combobox is not well set specifically with oracle.

It's a forward porting of #7872

Funded by Ifremer
2018-10-25 09:30:59 +02:00
Alessandro Pasotti
96b903e1f3 [db-manager] Increase precision when reporting query time
For consistency with the SQL dialog that used 3 decimal places
2018-10-03 14:48:04 +02:00
Alessandro Pasotti
c06c475b9c [db-manager] Update sql dialog buttons status
Fixes #19958 - Database manager allows one to create saved query with no name
2018-09-27 08:29:27 +02:00
Alessandro Pasotti
94ded32f4e [db-manager] Allow multiline filters in sql window
Fixes #19956 - Update SQL layer results in invalid SQL expression
2018-09-27 08:01:40 +02:00
Alessandro Pasotti
a8bf1b8f05 [dbmanager] Fix Update SQL Layer converts query to table name
Fixes #19843
2018-09-20 12:43:59 +02:00
Alessandro Pasotti
a74b6262df [dbmanager] Fix stored queries retrieve
Fixes #19802 - DB Manager saved SQL statements are saved empty
2018-09-18 18:22:58 +02:00
Salvatore Larosa
ea7c2af74b [dbmanager] fixes #17476: QGIS master: update SQL layer error if name contains uppercase chars 2017-11-21 14:42:30 +01:00
Daniele Viganò
a3f7655030 Fix a syntax error in dlg_sql_layer_window.py 2017-10-16 21:46:45 +02:00
rldhont
e6c64f69ce [FEATURE][DB Manager] Be able to update every Db layer from Postgres, Spatialite and Oracle 2017-10-06 17:38:17 +02:00
rldhont
e45206ab3e [BUGFIX][DB Manager] Fix update SQL Layer datasource 2017-10-06 17:35:34 +02:00
Matthias Kuhn
8473df562f
More endless hourglass protection 2017-07-30 22:18:25 +02:00
Harrissou Sant-anna
6fab688298 Use SpatiaLite right spelling when needed 2017-07-07 01:26:38 +02:00
Juergen E. Fischer
c77172ed3d fix more flake8 warnings 2017-03-05 10:21:24 +01:00
Juergen E. Fischer
f00a87cb8a update translation strings 2017-03-05 10:21:24 +01:00
Harrissou Sant-anna
ef85cdcf83 Replace "eg" by "e.g." or "for example" 2016-12-30 00:03:22 +01:00
Martin Dobias
d56a97d4fe Merge QgsMapLayerRegistry into QgsProject
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08:00
Even Rouault
3f2866c47a [FEATURE] [DBManager] Add a GeoPackage dedicated plugin 2016-10-18 20:08:27 +02:00
Matthias Kuhn
576ad138a9 Fix python calls to inexistent methods 2016-10-17 09:31:31 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Mathieu Pellerin
cd1d44be9d [db manager] python3 support (#3512) 2016-09-20 09:34:36 +02:00
Nyall Dawson
fe65063c2b Remove many deprecated methods 2016-09-15 18:34:15 +10:00
Matthias Kuhn
bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
rldhont
c1cdfe860d [DB Manager] Add the ability to update SQL Layer 2016-07-20 12:20:01 +02:00