283 Commits

Author SHA1 Message Date
arnaud.morvan@camptocamp.com
8e5b28f3bb [db_manager] Fix #14796 - Quote values depending on data type in query builder 2016-05-29 23:59:03 +02:00
Sebastian Dietrich
c5308754eb [DbManager] allow to refresh materialized views
(fixes #13697)
2016-05-14 00:41:20 +02:00
Matthias Kuhn
25f2e637c0 Remove references to QPyNullVariant 2016-05-13 22:23:03 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
elpaso
1e6dceb7d2 [dbmanager] Fixes various signal bugs after 8bda5c
Fixes some unreported glitches after new signals migration.

Also fixes #14649
2016-04-14 09:02:04 +02:00
Alessandro Pasotti
1eb63768d9 [dbmanager] Use user name as DB name if provided
Followup for 212b125
2016-04-12 14:40:23 +02:00
Alessandro Pasotti
212b125a2c [dbmanager] PG ignore env if service file is used
Fixes #14436

Funded by Boundless
2016-04-12 14:05:19 +02:00
Hugo Mercier
7dbc0bf819 [db manager] Fix virtual layers plugin (fixes #14404) 2016-03-23 17:39:41 +01:00
Juergen E. Fischer
c55f8b73f0 db_manager: cleanups 2016-03-21 17:00:24 +01:00
Juergen E. Fischer
8bda5c00a5 db_manager: migrate to new style signals 2016-03-15 23:46:54 +01:00
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Werner Macho
6acdfc6e84 improve import handling 2016-03-15 11:14:16 +01:00
Juergen E. Fischer
fb3fcfa3a0 Python3/Qt5/2to3 updates:
* pyqtwrappers update (add QtNetwork, QtXml, QtSql, QtTest, uic)
* 2to3 updates
* move QPyNullVariant/NULL to PyQt.QtCore
* add global unicode/basestring/long for Python3
* expand QtGui, QtCore module and star exports
* Qscintilla2
* replace Set import with set builtin
2016-03-14 20:38:20 +01:00
Juergen E. Fischer
c2c326c42e de-plenk question and exclamation marks 2016-03-07 15:10:46 +01:00
Martin Dobias
c7cde461b2 Fix drag&drop of spatialite tables (fixes #14237) 2016-02-23 16:51:57 +08:00
Martin Dobias
63be2e5303 Fix DB manager to work with SpatiaLite < 4.2 2016-02-23 16:39:30 +08:00
Sandro Santilli
976015a38d Fix typmod aware query for topology face layers
followup d8a768f0a0b1926ead3b42c0fa9e12d35f8905f0 (which was bogus)
2016-02-23 07:38:53 +01:00
Sandro Santilli
d8a768f0a0 Make geometry typmod available for topology face layer queries
Greatly improves performances on topology loading.
See http://hub.qgis.org/issues/14356
2016-02-22 23:13:39 +01:00
Hugo Mercier
942c5e5f73 Fix virtual layer file name handling (in Windows) 2016-02-15 16:44:17 +01:00
Sebastian Dietrich
0ab3653831 [DbManager] Fix the 'MoveToSchema' functionality (fixes #14219) 2016-02-13 01:01:05 +01:00
Nyall Dawson
cbe8cb7282 Formatting update, using newer autopep8 version 2016-01-30 09:33:24 +11:00
Salvatore Larosa
47013f7bef [dbmanager] Fixes #13679 - QGIS master crashes when closing DB Manager in preview mode 2016-01-27 09:54:43 +01:00
Sebastian Dietrich
560007846a [DbManager] allow to delete materialized views
(refs #13829)
2016-01-27 00:28:22 +01:00
Sebastian Dietrich
990261331d [DbManager] give materialized views their own icon 2016-01-27 00:28:22 +01:00
Sebastian Dietrich
50878114a7 [DbManager] fetch type of view (materialized or not) and show in info
(refs #13829)
2016-01-27 00:28:22 +01:00
Juergen E. Fischer
ae52aabd70 more spelling fixes 2016-01-24 20:16:28 +01:00
Juergen E. Fischer
4d2c10800d typo fixes 2016-01-21 22:22:39 +01:00
Jürgen Fischer
72a1e7eeb5 Merge pull request #2708 from boundlessgeo/postgis-pki-fix
[auth][db_manager] fix uri expansion on importing layer
2016-01-21 11:59:40 +01:00
Luigi Pirelli
0012761ab3 [auth][db_manager] fix connection info expansio on importing layer in pki postgis 2016-01-21 11:03:21 +01:00
Juergen E. Fischer
00633811c9 spelling fixes 2016-01-21 10:42:25 +01:00
Giuseppe Sucameli
472fa9bb08 Merge pull request #2696 from mdouchin/debug_dbmanager_sqlite_layer_info
[bugfix][DbManager] Fix indexes fetch with sqlite >= v3.8.9 (fix #14110)
2016-01-19 11:33:38 +01:00
Sandro Santilli
da372c8d40 Ensure "dbname" is always set in the uri
Fixes #10600
2016-01-19 10:58:14 +01:00
Michael Douchin
bae865153f [bugfix][DbManager] 14110 - Error fetching layer indexes with recent sqlite version
Fixes #14110

The method `getTableIndexes`, situated in line 371 of the file `db_manager/db_plugins/spatialite/connector.py`,
expected to get 3 fields from the sqlite method `PRAGMA index_list` .
In recent versions of SQLite, since 3.8.9, though, this method now returns 5 fields.
This commit fixes this issue by checking the length of columns returned by the method.
2016-01-19 10:27:52 +01:00
Alexander Bruy
e20cfc043c [DBmanager] add extension to file when exporting (fix #13733) 2016-01-15 17:41:48 +02:00
Larry Shaffer
5f3ca88a84 Merge pull request #2674 from boundlessgeo/postgis-pki-pr
[FEATURE] Postgres provider PKI authentication (plus fixes #13841)
2016-01-14 23:43:52 -07:00
rldhont
f5373ac3b9 DBManager oracle plugin: strip '"' on unique col
For Oracle provider, giving a quoted uniqueColumn in a uri to create a
QgsVectorLayer results in an invalid layer.

To fix it, strip '"' is applied to unique col.
2016-01-14 21:48:55 +01:00
Luigi Pirelli
5fb798e220 [auth][db_manager]removed certs (if any) after postgres connection 2016-01-13 21:28:25 +01:00
Sebastian Dietrich
ef91882fe0 explicitly call QgsDataSourceURI.connectionInfo() with appropriate parameter 2016-01-13 20:12:19 +01:00
Sebastian Dietrich
93ab890033 make DbManager aware of the new authentication system 2016-01-13 20:12:03 +01:00
Hugo Mercier
1d7b281611 Add qgis functions to db manager and creation ui 2016-01-11 14:11:14 +01:00
Hugo Mercier
70f26b66be Merge pull request #2647 from mhugo/vlayer_gui
Virtual layers GUI integration
2016-01-11 12:17:50 +01:00
Juergen E. Fischer
4e1cf3c081 add missing copyright headers 2016-01-08 21:32:11 +01:00
Hugo Mercier
8bbdff471c Fix a bad indentation bug 2016-01-07 15:38:09 +01:00
Juergen E. Fischer
02696c71d4 include virtual layer provider in packaging 2015-12-19 15:19:36 +01:00
Hugo Mercier
9e14f09862 Add a plugin to DB Manager to support virtual layers 2015-12-18 19:45:58 +02:00
Juergen E. Fischer
c2fb11c8d5 db manager: only alias subqueries on postgres (fixes #13731) 2015-12-02 09:24:25 +01:00
Juergen E. Fischer
f92efbc032 db manager oracle plugin: avoid tablespace index parameter 2015-12-02 09:22:46 +01:00
Giuseppe Sucameli
c4dcb7b812 [DbManager] delete layer passed to querybuilder to set sql layer filter (follow f6e31613) 2015-11-30 00:38:06 +01:00
Sebastian Dietrich
f6e3161317 Added a button to set a filter for a query layer. 2015-11-29 13:19:55 +01:00
Sebastian Dietrich
e04d5e4d70 replaced 'LIMIT 0' by 'WHERE 0=1' (fixes #13731) 2015-11-17 21:29:19 +01:00