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

PG::SyntaxError: ERROR from timestamp #1305

Closed
bananatron opened this issue Mar 29, 2024 · 1 comment · Fixed by #1306
Closed

PG::SyntaxError: ERROR from timestamp #1305

bananatron opened this issue Mar 29, 2024 · 1 comment · Fixed by #1306

Comments

@bananatron
Copy link
Contributor

I couldn't go to /jobs in the admin view, getting:

LINE 1: ... ( good_jobs.scheduled_at ,good_jobs.created_at ) : : TIMEST...
                                                             ^
):
    1: <%= render 'good_job/shared/filter', title: t("good_job.shared.navbar.jobs"), filter: @filter %>
    2: <%= render 'good_job/shared/chart', chart_data: GoodJob::ScheduledByQueueChart.new(@filter).data %>
    3: 
    4: <div data-live-poll-region="jobs-table">
    5:   <%= render 'good_job/jobs/table', jobs: @filter.records, filter: @filter %>

This line was the culprit producing the following string:

COALESCE (
  good_jobs.scheduled_at
  ,good_jobs.created_at
) : : TIMESTAMP AS scheduled_at

I'm not sure what's generating the whitespace between : : TIMESTAMP

  • good_job v3.26.1
  • rails v7.1.3.2

I upgraded everything without a lot of precision which seems to have fixed the issue, just wanted to past it here for searchability.

@bananatron
Copy link
Contributor Author

Closing this, but here is a hint at a fix if anyone lands here: #1306

@github-project-automation github-project-automation bot moved this from Inbox to Done in GoodJob Backlog v2 Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant