Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some tests with date filters #1034

Open
pvgenuchten opened this issue Oct 21, 2024 · 0 comments
Open

some tests with date filters #1034

pvgenuchten opened this issue Oct 21, 2024 · 0 comments

Comments

@pvgenuchten
Copy link
Contributor

pvgenuchten commented Oct 21, 2024

Some queries work fine on demo, but not on our postgres backed instance, differences can be explained by the database?

after date; error: sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedFunction) operator does not exist: text >= timestamp with time zone LINE 4: WHERE records.insert_date >= '2020-07-16T00:00:00+00:00'::ti...

using during keyword sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedFunction) operator does not exist: text >= timestamp with time zone LINE 4: WHERE records.date >= '1969-07-16T13:32:00+00:00'::timestamp...

Seems the field is text, date type is expected?

I also tried date without T00:00:00Z, but then the code converted the date to an integer (1969 minus 07 minus 16 = 1946)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant