You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MERGE [rmme_foo] AS [qb_target] USING (VALUES (1, null, 'some new string value')) AS [qb_src] ([A], [B], [C]) ON
[qb_target].[a] = [qb_src].[a] AND
[qb_target].[b] = [qb_src].[b] /* <------ this */
WHEN MATCHED THEN UPDATE SET [c] = [qb_src].[c]
WHEN NOT MATCHED BY TARGET THEN INSERT ([A], [B], [C]) VALUES ([A], [B], [C]);
the line marked <------- this should probably be [qb_target].[b] is null, otherwise it never matches (since null never equals null)
The text was updated successfully, but these errors were encountered:
elpete
transferred this issue from coldbox-modules/quick
Dec 6, 2023
hey upsert is great; I ran into the following using it, on the MSSQL grammar:
generates:
the line marked
<------- this
should probably be[qb_target].[b] is null
, otherwise it never matches (sincenull
never equalsnull
)The text was updated successfully, but these errors were encountered: