Statistics
| Branch: | Tag: | Revision:

qgis / src / providers / mssql / qgsmssqlprovider.cpp @ master

History | View | Annotate | Download (110 KB)

# Date Author Comment
9b095c56 2023-10-23 05:47 AM Sandro Mani

Revert "Revert "Allowing storing GPGK raster layer styles to DB""

This reverts commit 9d8a72256893bd31a51d85927e9abd9cdb5eed29.

0ec5f0de 2023-10-19 08:03 PM Sandro Santilli

Add QgsRectangle::setNull(), deprecating setMinimal()

9d8a7225 2023-10-06 04:15 AM Nyall Dawson

Revert "Allowing storing GPGK raster layer styles to DB"

e2169be0 2023-09-18 02:16 PM Sandro Mani

Introduce Qgis::ProviderStyleStorageCapabilities

3b33ceb8 2023-06-29 03:33 PM Alessandro Pasotti

Use the static method for type parsing

4a5b372e 2023-06-29 03:22 PM Alessandro Pasotti

MSSQL: fix ZM types select plus unreported M metadata detection

Fix #53633

Plus fixes unreported 'M' detection issue when reading type from
metadata (geometry_columns table)

Moved the parsing logic to a single static method.

634511e3 2023-06-27 11:37 PM Alessandro Pasotti

MSSQL: fix geom type detection when no metadata are used

Fix #53614

6711e97d 2023-05-30 09:55 PM Nyall Dawson

thread_local all const QRegularExpression objects

8a2c0e35 2023-05-20 08:19 AM Nyall Dawson

Replace QgsDebugMsg(...) with QgsDebugError(...) and ensure it
is ONLY used for error message reporting

Everything else gets bumped to QgsDebugMsg(..., >= 2)

5133ba0f 2023-05-01 08:37 AM Andrea Giudiceandrea

Fix MSSQL PrimaryKey in geometry table

046883fa 2023-02-22 03:39 AM Nyall Dawson

Promote QgsWkbTypes enums to enum class, move to Qgis

1a0936b6 2023-02-18 07:02 PM Jürgen Fischer

replace translatio from debug output and typo fixes

1142e8ff 2023-02-16 01:02 PM Nyall Dawson

Move QgsMapLayerType enum to Qgis.LayerType (#51874)

For consistency with other enums

69e26fc5 2022-11-17 02:18 PM Jürgen Fischer

mssql provider: don't double 'quote' (fixes #50914) (#50915)

9c2923aa 2022-11-07 10:16 AM Alessandro Pasotti

Optionally load all stored styles from DB with correct names.

Fixes #37434

Funded by: Ministère des Forêts, de la Faune et des Parcs - Québec

479ea0c6 2022-08-23 10:46 AM Harrissou Santanna

Use "MS SQL Server" for user facing texts

f88cf5f8 2022-08-20 07:35 AM Nyall Dawson

Update core and gui to use QgsVariantUtils::isNull

221e63cd 2022-06-16 05:55 AM Nyall Dawson

Add icon to QgsProviderMetada

fc9b6053 2022-06-15 07:04 AM Nyall Dawson

Add QgsProviderMetadata::supportedLayerTypes() so that we can
query the layer types supported by a data provider

7078d15b 2022-04-26 02:02 PM Alessandro Pasotti

More macros for oracle and mmsql

fd67e4f2 2022-04-26 02:02 PM Alessandro Pasotti

Some more work on oracle and mssql

a8c0a30a 2022-03-15 11:59 PM Nyall Dawson

[mssql] Fix identity column types have a forced not null constraint
but not a complimentary defaultValueClause

This causes issues with any table using a identity column, as a user
is forced to populate these columns themselves in order to create
features, yet the value will be discarded when the feature is saved...

f1365b1a 2022-01-24 08:26 AM Nyall Dawson

[api] Don't use widgets in QgsProviderMetadata::saveStyle implementations

This is not safe to do -- it causes a crash if the api is used in
a background thread

Fixes #46954
Fixes #46914

95156956 2022-01-24 08:26 AM Nyall Dawson

[mssql] Add layer styles tests, minor fixes for layer style handling

1be383a3 2022-01-24 08:26 AM Nyall Dawson

[api] Add QgsProviderMetadata method to test whether a style with
a specified ID already exists

74a6f644 2022-01-21 02:14 AM Nyall Dawson

[mssql] Use correct capitalisation for queries involving INFORMATION_SCHEMA
tables, or queries will not run on case-sensitive databases

Fixes #46907

499b9f69 2022-01-21 12:21 AM Nyall Dawson

[mssql] Fix detection of primary key, likely other issues too

Calling QSqlQuery::clear() also resets the QSqlQuery::setForwardOnly
flag, so we need to ensure that we set this after every time
we clear the query.

00532ec4 2022-01-19 11:51 PM Nyall Dawson

[mssql] Fix inserting features when pk attribute name contains special chars

Fixes #42290

35111588 2022-01-09 10:10 PM Matthias Kuhn

Copy shared data post-layer-clone

72e94dcf 2021-10-21 06:09 AM Nyall Dawson

QString fixups

176a35ed 2021-09-09 05:07 PM Martin Dobias

Dirty save points so that undo/redo works correctly + tests

1a8ff847 2021-09-09 05:07 PM Martin Dobias

[feature] Transactions in MSSQL provider

19565032 2021-08-13 07:25 AM Nyall Dawson

const ALL the things

Use clang-tidy const correctness fixit to add const to all
variables which it can

71111445 2021-07-20 09:25 AM Nyall Dawson

Remove nonsense debug message

ad17471d 2021-06-21 04:36 PM Damiano Lombardi

[mssql] use unique constraint info from db to set field ConstraintUnique

92fc4350 2021-06-15 04:40 AM Even Rouault

Update featureCount() methods to return long long for Win64 compatibility

59be24f9 2021-06-11 01:20 AM Damiano Lombardi

[mssql] use nullable info from db to set field ConstraintNotNull

de406693 2021-05-20 01:09 PM Nyall Dawson

Move QgsVectorLayerExporter.ExportError to Qgis and promote to enum
class

This avoids an ugly include of qgsvectorlayerexporter.h in
qgsproviderregistry.h/qgsprovidermetadata.h, which in turn
triggers an inclusion of qgsvectorlayer.h and a bunch of
other heavy dependencies.

1c2bac0b 2021-04-07 07:04 AM Vincent Cloarec

fix MSSQL extent in geometry table (#42684)

b53f97bd 2021-04-01 10:31 PM Nyall Dawson

More QRegularExpression in providers

8482510a 2021-01-14 11:57 AM Jürgen Fischer

fix translation string

6b17d5b5 2021-01-13 11:22 PM Vincent Cloarec

keep layer valid if geometry_columns extent/pkey not valid

64d58785 2021-01-13 11:22 PM Vincent Cloarec

Improve mssql loading with predefined extent/pkey

7717a20a 2020-11-05 11:16 AM Nyall Dawson

Mark some QgsProviderMetadata methods as const

a76670e5 2020-10-11 04:30 AM Even Rouault

QStringLiteral -> QLatin1String changes generated by scripts/qstringfixup.sh --all

8609a729 2020-09-17 02:28 PM Matthias Kuhn

Merge branch 'master' into mssqldefaultvalues

b3e7230a 2020-09-17 08:12 AM Jürgen Fischer mssql provider:
  • add missing support for non-integer and compound keys
  • update unit tests
  • unify time handling: iterator / minimumValue / maximumValue / uniqueValues
85b0590c 2020-09-14 04:03 PM Damiano Lombardi

Implemented test for method QgsMssqlProvider::defaultValue

53c0d400 2020-09-14 04:03 PM Damiano Lombardi

Implemented method QgsMssqlProvider::defaultValue

74ffc1a0 2020-09-09 09:40 AM René-Luc ReLuc

MSSQL and DB2: Use trust datasource config flag

45e9ecb1 2020-09-09 09:35 AM René-Luc ReLuc

Trust layer metadata propagation

The trust flag at the projetc level is only used to read vector layer extent from xml, not from provider.

This flag was not available at the vector layer and data provider level.

We propose a new QgsMapLayer reading flag to propagate the trust layer metadata prohect's read flag an d a new provider options to trust datasource config....

bfd30960 2020-09-09 08:00 AM Daniel Minor

Use zero to represent not applicable precision

The documentation for QgsField states that zero should be used for
an unset precision, but the database providers use -1 in some places
for that purpose.

Fixes #38360

98496a29 2020-07-16 03:38 PM Alessandro Pasotti

Guard for options null (other providers)

9d1d88d2 2020-07-16 03:36 PM Alessandro Pasotti

Guard for options null

b1c371af 2020-07-16 10:49 AM Alessandro Pasotti

Add static nativeTypes and remove ugly workaround

f0b43aa2 2020-07-15 04:51 PM Alessandro Pasotti

Browser table: skip fields conversion + UX & tests

The reason for skipConvertFields is that the providers
are not smart enough to recognize if a field is alredy
compatible and they narrow down all fields anyway
to stay on the safe side.

Fixing all providers would be nice but it's definitely...

b17da057 2020-05-22 08:28 AM Nyall Dawson

[mssql] Compile make_datetime, make_date, make_time

Allows efficient use of SQL server tables along with temporal mode

ef46d8ec 2020-05-14 10:58 AM Nyall Dawson

Fix mssql provider returns garbage values for min/max/uniquevalues on time fields

098c5786 2020-05-14 10:58 AM Nyall Dawson

Even less chatty

d7e7d5da 2020-03-26 04:06 AM Nyall Dawson

Correctly decode password when decoding postgres/mssql uris

2760f8ad 2020-03-13 04:06 PM Alessandro Pasotti

MSSQL connections API initial implementation

b37dd098 2019-12-20 03:13 AM Nyall Dawson

Rip off a band aid, and deprecate all "proj4" calls from the API

Alias these across to new "proj" methods, which don't include the
version number.

ab51de0c 2019-10-26 12:28 AM Martin Dobias

[mssql] Speed up loading of larger views (fixes #27618)

The extent estimation was taking a long time for views because we can't use
spatial index statistics - the code was doing full scan of the view. Now we
try to scan just 1% of the rows to get a good estimate. If that fails...

2a16f3e9 2019-07-01 01:37 PM Martin Dobias

[mssql] Move GUI code to new files + remove legacy data item calls

5f055891 2019-06-23 08:36 PM Martin Dobias

Pass uri in createProvider() as a reference, not a pointer

8c4ef42e 2019-06-21 05:00 PM Martin Dobias

Remove description() from QgsProviderGuiMetadata - it is not needed there

6918bac9 2019-06-20 10:49 AM Martin Dobias

Revert API break and move WidgetMode back to QgsProviderRegistry

62d615c2 2019-06-18 03:15 PM Peter Petrik

[QEP 149] Introduce static data providers [API BREAK]

- adds QgsProviderGuiRegistry and QgsProviderGuiMetadata
- adds QgsProjectStorageGuiRegistry
- requires providerMetadataFactory for dynamic data providers
- requires providerMetadataGuiFactory for dynamic data providers (GUI only)...

6c6c1455 2019-06-15 07:16 AM Tamas Szekeres

Fix writing geometries with M values, adding tests for Z/M/ZM geometries

3196b026 2019-06-15 07:16 AM Tamas Szekeres

Fix indentation

68a5d1a9 2019-06-15 07:16 AM Tamas Szekeres

Fix creating layers with curve geometries

abc39221 2019-06-15 07:16 AM Tamas Szekeres

Apply 'm' prefix for class member variables instead of the hungarian notations.

58f8e765 2019-06-15 07:16 AM Tamas Szekeres

Strip nullptr inequality check

95ab5801 2019-06-15 07:16 AM Tamas Szekeres

Apply lower case to member functions for the mssql driver

38659fbb 2019-06-15 07:16 AM Tamas Szekeres

Rework MSSQL parser to support v2 geometries (fixes #22041)

4d6fbd3f 2019-05-15 09:54 AM Matthias Kuhn

Remove unrequired ;

and make clang-tidy a bit more smiley

a6665d42 2019-04-05 01:34 PM Matthias Kuhn

Kill them Q_FOREACH

6f92e7cf 2019-03-20 08:58 PM Martin Dobias

[mssql] More sensible srid when adding CRS to MS SQL database

The spatial_ref_sys table has srid column with ID of CRS entries.
I believe the IDs can be arbitrary, however it has been a good habit
to use EPSG number for srid (at least in GDAL - and the same thing...

69f6ea52 2019-01-07 02:48 AM Alex Hay

[mssql] Fix inserting features into tables with an after insert trigger attached

Fixes #20592

b1fd7b5a 2018-11-22 11:50 AM Martin Dobias

[mssql] Fix import of layers with invalid geometries (fixes #20122)

This essentially reverts 62f4534

Rationale:
- even valid geometries according to GEOS may be considered as invalid by MS SQL
so there is no way of knowing that a geometry may be fail to be added...

704959bc 2018-11-04 12:58 AM Martin Dobias

[mssql] Do not expect that SRIDs are equivalent to postgis SRIDs

There is no direct relationship between postgis SRIDs and SRIDs used in any other database.

If you imported data with GDAL, things may work, because GDAL prefers to use equivalent SRIDs
to EPSG IDs / PostGIS SRIDs....

972250d0 2018-10-25 11:54 PM Nyall Dawson

[mssql] Use output instead of IDENT_CURRENT to retrieve newly added primary keys

It's safer, works with non-identity columns, and potentially allows
us to optimise in future and bulk insert features instead of
one by one

72946c30 2018-10-25 11:54 PM Nyall Dawson

[mssql] Fix incorrect layer extents after modifying layers

fb0b8fda 2018-10-25 11:54 PM Nyall Dawson

[mssql] For consistency with other providers deleteFeatures should return true to an empty list

cd64d31b 2018-10-25 11:54 PM Nyall Dawson

[mssql] Ensure provider rejects features with incorrect geometry type