295 Commits

Author SHA1 Message Date
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
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
f92efbc032 db manager oracle plugin: avoid tablespace index parameter 2015-12-02 09:22:46 +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
Matthias Kuhn
0b6dd352c9 [py3] CMake updates to support Python3 and PyQt5 2015-11-16 07:42:47 +01:00
Médéric Ribreux
0aa0b4c804 DBManager: support timestamp values for Oracle 2015-10-23 14:04:40 +02:00
Juergen E. Fischer
bf64f8d0a0 spelling fixes and indentation update 2015-10-22 21:56:54 +02:00
Giuseppe Sucameli
339fd75655 DBManager: merge PR2342 by medspx (fix #13650) 2015-10-22 21:28:02 +02:00
Giuseppe Sucameli
9419a44537 DBManager: revert commit 87675f8ab
Maybe I was drunk...
2015-10-22 21:17:56 +02:00
Giuseppe Sucameli
87657f8ab4 DBManager: fix #13650 2015-10-22 19:27:33 +02:00
Juergen E. Fischer
53c507d3a7 db manager: add credentials to postgis rasters (fixes #13594) 2015-10-13 22:54:01 +02:00
Giuseppe Sucameli
396ec2290b DBManager: fix int/float conversion to unicode (partially revert changes in 401f43c and fix #13505) 2015-10-04 18:02:14 +02:00
Juergen E. Fischer
e694474f62 indentation update 2015-10-03 21:42:13 +02:00
Giuseppe Sucameli
401f43c590 DBManager: fix data conversion to unicode (errors='replace' should be enough) 2015-10-01 00:29:38 +02:00
Giuseppe Sucameli
0c480a93c6 DBManager: fix unicode error display table data (fix #13447) 2015-09-30 00:12:11 +02:00
Giuseppe Sucameli
a17dac0561 [DBManager] fix loading Rasterlite layer from DBManager to QGIS by drag'n'drop 2015-09-21 23:07:04 +02:00
Juergen E. Fischer
53c84915e9 indentation update 2015-09-06 01:24:09 +02:00
Giuseppe Sucameli
80a13e3852 [DBManager] fix add new SL/GPKG connection from "New connection" context menu entry 2015-09-04 00:32:49 +02:00
Giuseppe Sucameli
03916d549a [DBManager] add SL/Geopackage connection by drag&drop (follow b11f67b4f5), improve GPKG support:
- recognize tables with geometry,
- load GPGK layers to canvas from context menu,
- disable table editing
2015-09-03 01:22:54 +02:00
Giuseppe Sucameli
a2ce73aec0 [DBManager] retrieve and store columns not null value when editing table (fix #13089) 2015-08-25 00:46:28 +02:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Matthias Kuhn
9fc1b48bf3 Replace str() with unicode() and some PEP 8 2015-08-16 20:58:43 +02:00
Matthias Kuhn
d32f3340ae Fix typo 2015-08-12 21:38:14 +02:00
Juergen E. Fischer
4984cae78d db_manager: enable oracle plugin only when oracle support is available 2015-07-26 18:58:57 +02:00
Juergen E. Fischer
b165875fa6 spelling fixes 2015-07-26 14:39:30 +02:00
Médéric RIBREUX
bda76e5750 Fix CMakelist for oracle 2015-07-25 16:51:38 +02:00
Médéric RIBREUX
3768d04d3d Oracle Spatial support for DBManager 2015-07-25 16:31:11 +02:00
Juergen E. Fischer
48e4fb85c8 Revert "use triple quoting with st_estimatedextent in postgres provider and db_manager (fixes #12478)"
As it seems to address a meanwhile reverted behavior change in PostGIS 2.1
before it was released (see also https://trac.osgeo.org/postgis/ticket/2834).

This reverts commit 048aff01bb9cf42e2c1c17eb0ddbd81537443e19.
2015-07-13 11:15:40 +02:00
Juergen E. Fischer
a6c3de3047 db_manager: properly parse sqlite version (followup 5b86e38) 2015-07-11 23:42:46 +02:00
Juergen E. Fischer
5b86e38676 db_manager: only try isgpkg on spatialite plugin and sqlite version parsing 2015-07-11 23:24:13 +02:00
Sandro Santilli
b9b6257eb7 DBManager TopoViewer: zoom on topology if first load
Fixes #13064
2015-07-02 23:57:54 +02:00
Sandro Santilli
fcc51bcd8c DBManager topoviewer: don't be fooled by srid=-1 in topology.topology
Fixes #12802
2015-07-02 11:02:04 +02:00
Cedric Christen
4420b3bf99 Drag&Drop support for GeoPackage layers 2015-06-26 16:35:31 +02:00
Juergen E. Fischer
048aff01bb use triple quoting with st_estimatedextent in postgres provider and db_manager (fixes #12478) 2015-06-24 18:08:26 +02:00
Hugo Mercier
2e86d54b27 Merge pull request #2025 from mhugo/db_manager_dev
db manager SQL window enhancements
2015-05-25 16:29:40 +02:00
radosuav
27f1d9fb3e Fix drag & drop for PG rasters in DB Manager 2015-05-19 14:56:17 +02:00
Hugo Mercier
e440dee1bd [DBManager] Add a 'create view' button 2015-05-04 17:19:21 +02:00