View Issue Details

IDProjectCategoryView StatusLast Update
0006621SymmetricDSBugpublic2024-10-18 19:51
Reporterpbelov Assigned Topbelov  
Prioritynormal 
Status assignedResolutionopen 
Product Version3.15.0 
Summary0006621: NVARCHAR(MAX) and VARCHAR(MAX) columns get modified when another column is updated (SQLServer-specific)
DescriptionNVARCHAR(MAX) and VARCHAR(MAX) columns get modified when another column is updated (SQLServer-specific)
Steps To ReproduceServer db=SQL Server (SymmetricRoot schema)
Client db=SQL Server (SymmetricClient schema)
CREATE TABLE SymmetricRoot (and on SymmetricClient).dbo.test_nvarchar_max(
    col1 nvarchar(7)
    ,col2 int NULL
    ,comments nvarchar(max) NULL
    ,CONSTRAINT UX_RO_LICNO_RO_NO UNIQUE (col1)
);

INSERT INTO SymmetricRoot.dbo.test_nvarchar_max VALUES ('row1', 100, 'TEST_COMMENT_1');
-- Observe row sent over to the Client
-- Run two updates (one on Root, one on Client)
UPDATE SymmetricRoot.dbo.test_nvarchar_max SET col2=200 WHERE col1='row1';
UPDATE SymmetricClient.dbo.test_nvarchar_max SET COMMENTS='TEST_COMMENT_5' WHERE col1='row1';
-- Observe client row loosing it's new value in the COMMENTS column (reset to match Root)
-- Results on Client:
col1='row1'
col2=200
COMMENTS='TEST_COMMENT_1'
Additional InformationThis issue is specific to SQL Server dialect in how it triggers handle the NVARCHAR(MAX) and VARCHAR(MAX) data types.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-10-18 19:51 pbelov New Issue
2024-10-18 19:51 pbelov Status new => assigned
2024-10-18 19:51 pbelov Assigned To => pbelov