295 Commits

Author SHA1 Message Date
Juergen E. Fischer
4b00182482 oracle provider: by default skip additional geometry columns (on 64bit
Windows/Linux OCI crashes when there are more than three geometry
columns)
2016-06-23 22:22:46 +02:00
Juergen E. Fischer
d9f934f950 db manager: re-enable margins with line numbers in sql editor
(fixes #15110)
2016-06-22 22:41:44 +02:00
Juergen E. Fischer
1f0fce7852 db manager: fix drag and drop import (fixes #13712) 2016-06-22 12:35:17 +02:00
Juergen E. Fischer
ecf3b3719d db manager: show database name in postgis connection details (fixes #3489) 2016-06-21 00:17:41 +02:00
Salvatore Larosa
f1ec12133e [dbmanager] followup 8727799: again some emit signal fix 2016-06-11 18:29:29 +02:00
Salvatore Larosa
87277999a4 [dbmanager] Fix emit signal when refresh fields in table 2016-06-11 16:58:11 +02:00
Salvatore Larosa
3b998d21ed [dbmanager] fix some import statement 2016-06-10 22:18:52 +02:00
Salvatore Larosa
c578f3a635 [dbmanager] Fix some pyqtslot 2016-06-10 18:01:02 +02:00
Salvatore Larosa
b9d1544c64 [dbmanager] Fixes #14740 - Previews do not work and python error for PG layers 2016-06-10 17:22:19 +02:00
Salvatore Larosa
a8cf02ad8d [dbmanager] fix DeprecationWarning 2016-06-07 22:28:50 +02:00
Salvatore Larosa
65aa860121 [dbmanager] Fixes #14722 - Adding new GeoPackage connection to DB Manager is throwing error 2016-06-07 14:06:07 +02:00
Salvatore Larosa
2cf224cacf [dbmanager] remove maxsize constraint for reset button in query builder dialog 2016-05-30 14:26:25 +02:00
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