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
So date fields here are getting single quotes while other fields don't.
The generated query starts working when I erase the two rogue NCHAR(39).
So I'm thinking the problem is some string parsing/filtering that is failing for dates and letting the single quotes there.
I have no idea if there's a setting in SQL Server that can make this work. I found it a little bit weird I'm the first one reporting this. I've tried with multiple tables and the same result.
In postgres this works properly.
Any possible solutions/workarounds you're aware of?
I didn't found a workaround yet.
Keywords
sql server mssql date subscription error
The text was updated successfully, but these errors were encountered:
Version Information
Server Version: 2.37.1
Environment
OSS
What is the current behaviour?
All subscriptions with a filter on a date field doesn't work on SQL Server 2019
This returns:
What is the expected behaviour?
I hoped it would work.
How to reproduce the issue?
Using SQL Server 2019
Please provide any traces or logs that could help here.
I've tracked down a little bit and I understand why this is happenning.
This is the generated query, by using the explain button on the console (i've manually renamed the table names from my own instance):
I've compared it with a query that uses a non-date field as filter
And the difference is this:
Which renders to:
For comparaison, using another field in the filter I get this:
The only difference between the two of them is:
So date fields here are getting single quotes while other fields don't.
The generated query starts working when I erase the two rogue NCHAR(39).
So I'm thinking the problem is some string parsing/filtering that is failing for dates and letting the single quotes there.
I have no idea if there's a setting in SQL Server that can make this work. I found it a little bit weird I'm the first one reporting this. I've tried with multiple tables and the same result.
In postgres this works properly.
Any possible solutions/workarounds you're aware of?
I didn't found a workaround yet.
Keywords
sql server mssql date subscription error
The text was updated successfully, but these errors were encountered: