240 Commits

Author SHA1 Message Date
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
Juergen E. Fischer
05b8a985a5 indentation update 2015-08-25 20:04:50 +02:00
Giuseppe Sucameli
fdb0d20677 [DBManager] get default pk, geom and srid values from input layer to set default options in import vector dialog 2015-08-25 02:39:19 +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
Giuseppe Sucameli
4dc7eba107 DBManager: fix minor issues due to Query dialogs repleaced with Query tabs (ref commit 5fb52fa1edc)
In detail:
* hide close button from Info, Table and Preview tabs (it should work on Mac as well),
* always display dbtype icon into query tab
* show database name in tab text (otherwise we dunno which db the query is executed against)
* restore original tab text when query name becomes empty
2015-08-22 02:34:53 +02:00
Nathan Woodrow
5fb52fa1ed Remove query dialog. Replace with tabs 2015-08-17 18:10:59 +10: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