Closed mortenmoulder closed 1 month ago
@mortenmoulder sorry for the late reply!
This is an NpgSql issue and not necessarily one that NetPad can do anything about. What's most likely happening is that your timestamp
column is of type timestamp with time zone
. When you compare it using UtcNow
your NpgSql passes your UTC date argument as type timestamp without time zone
resulting in a mismatch and not finding a function that can compare the two different types. If you change that UtcNow
to just Now
it should work.
You can read more about this here:
Just updated to 0.7.0 and it looks really good. Good job
Thank you for the support! Glad you're enjoying it :smiley:
Closing this issue, please feel free to reopen it if your issue is not resolved.
Just updated to 0.7.0 and it looks really good. Good job!
Trying something as simple as:
throws this error:
Generated SQL is:
The problem is DATE_TRUNC only takes two arguments, so the function call should look like something like this instead: