Project

General

Profile

Actions

Bug #79282

closed

SQL identities and IDENTITY_INSERT with doctrine on mssql server

Added by Johannes Goslar over 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2017-01-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

On mssql servers dumps/importing with preset ids will fail as IDENTITY_INSERT is not set/allowed by default.
E.g. #79143
If we want IDENTITY_INSERT we would need to write some custom integration to set it on the just the table be inserted into at the current moment as it can only be ON for one table at a time.
In general it is probably wiser to not rely on inserting ids or altogether move away from sql dumps for static data shipped by extensions/distributions.

Actions #1

Updated by Christian Kuhn almost 7 years ago

I guess solution depends on actual use case ... i'm currently compiling some patches for mssql to get more functional tests green with mssql: for the functional tests, they pretty heavily rely on setting IDENTITY, this can't be easily avoided. Thus, for the functional "import data sets" part, I now added identity_insert on for now.
for WIP patch, see: https://review.typo3.org/#/c/52912/

Actions #2

Updated by Morton Jonuschat almost 7 years ago

  • Status changed from New to Resolved

MSSQL is in experimental support, we are currently running functional tests against it. This should have been resolved with the integration work done for that.

Actions #3

Updated by Gerrit Code Review almost 7 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53352

Actions #4

Updated by Anja Leichsenring almost 6 years ago

  • Status changed from Under Review to New
Actions #5

Updated by Anja Leichsenring almost 6 years ago

can someone please check whether this issue still exists? There had been some action in the MSSQL area lately.

Actions #6

Updated by Sebastian Hofer about 5 years ago

Yes, this issue does still exist. We currently have to deal with a MSSQL server and have problems with this. We would have to set IDENTITY_INSERT to ON for certain tables during writing, but it seems, that this is not possible.

Actions #7

Updated by Susanne Moog about 4 years ago

  • Status changed from New to Closed

The issue itself may still exist, however this is more a general topic than a concrete issue. If you are using SQLServer with TYPO3 and have problems like this, please report single bug reports with steps to reproduce for each problem.

I had a TYPO3 installation based on MSSQL running and the core functionality was working quite well, that's why I ask to report separate issues if there are still problems.

In a broader scope, I agree with Johannes that inserting ID values and sql dumps are a less than ideal solution, however that would need a separate project to rework.

Actions

Also available in: Atom PDF