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
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
Giuseppe Sucameli
2a57b17068
DBManager: avoid loading a query as layer with missing fields ( fix #11037 ),
...
restore combo style and label when multiple unique fields for view are not supported (follow 8e45da9d7e)
2015-10-22 19:23:42 +02:00
Sebastian Dietrich
8e45da9d7e
db_manager allows multiple column primary keys only for PostGIS queries, not for SpatiaLite.
2015-10-18 18:10:01 +02:00
Sebastian Dietrich
d8deb8c081
Db_Manager keeps the selected columns for primary key and geometry when running the query or rereading the columns if the selected columns still exist.
2015-10-17 16:43:54 +02:00
Sebastian Dietrich
724a5bda9a
Db_Manager now allows to select multiple columnns as the primary key for a query.
2015-10-17 16:15:21 +02:00
Sebastian Dietrich
20283a4dfc
Unified the way the column comboboxes are filled when executing the query and when pressing the load columns button.
2015-10-17 02:19:41 +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
9f67f4cde0
DBManager: add table/layer to canvas double clicking on it
2015-10-10 00:42:27 +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
ece1169a44
DBManager: trap RuntimeError when disconnecting signals from a deleted object
2015-09-30 00:12:11 +02:00
Juergen E. Fischer
56b5d4e723
indentation update
2015-09-26 19:53:10 +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
Giuseppe Sucameli
6a6e366c04
[DBManager] in import/export dialog, replace "Drop existing one" text to a more meaningful one ( fix #13384 )
2015-09-21 22:18:39 +02:00
Giuseppe Sucameli
99211262f3
[DBManager] allow to export table data to supported ogr file formats other than shapefile ( fix #12111 )
2015-09-21 22:18:39 +02:00
Larry Shaffer
1c0b6077f8
Followup to 2a5f262; fix typo and run through autopep8
2015-09-09 14:37:20 -06:00
Augustin
2a5f262beb
Add "import only selected features" option to db manager
2015-09-09 19:00:40 +02:00
Juergen E. Fischer
53c84915e9
indentation update
2015-09-06 01:24:09 +02:00
Giuseppe Sucameli
eea81e81c5
[DBManager] remove layers from QgsMapLayerRegistry once refreshing a table, previewing a different layer or closing the DBManager main window ( fix #12938 )
2015-09-04 23:52:23 +02:00
Giuseppe Sucameli
13e1959f4d
[DBManager] "Drop existing table" option in Import vector dialog is now named "Replace existing table" ( fix #12961 )
2015-09-04 00:45:32 +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
71afc9adc7
[DBManager] do not add new connection per drag&drop (partially revert 8b2bbcd)
2015-09-03 01:20:19 +02:00