-
Notifications
You must be signed in to change notification settings - Fork 447
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
Another PostgreSQL bug: series links #4548
Comments
@crism, could you turn on the stack trace option in |
From our test installation error log:
From the stack trace:
|
The full query: select
distinct "s".*,
"ps".*,
COALESCE(stl.setting_value, stpl.setting_value) AS series_title,
"psf"."seq",
case when psf.seq is null then 1 else 0 end
from
"submissions" as "s"
left join "submission_settings" as "st" on "s"."submission_id" = "st"."submission_id"
left join "published_submissions" as "ps" on "ps"."submission_id" = "s"."submission_id"
left join "series_settings" as "stpl"
on "s"."series_id" = stpl.series_id
and "stpl"."setting_name" = 'title'
and "stpl"."locale" = 'en_US'
left join "series_settings" as "stl"
on "s"."series_id" = stl.series_id
and "stl"."setting_name" = 'title'
and "stl"."locale" = 'en_US'
left join "features" as "psf"
on "s"."submission_id" = "psf"."submission_id"
and "psf"."assoc_type" = 530
and "psf"."assoc_id" = 1
where
"s"."context_id" = ?
and "st"."setting_name" = ?
and "ps"."pub_id" is not null
and "s"."status" in (?)
and "s"."series_id" in (?)
group by
"s"."submission_id",
"st"."setting_value",
"ps"."date_published",
"ps"."pub_id",
COALESCE(stl.setting_value, stpl.setting_value),
psf.seq
order by
case when psf.seq is null then 1 else 0 end,
"psf"."seq" ASC,
"st"."setting_value" asc |
What release/branch are you working with? |
We’re on 3.1.1-4 (though we have two patches installed: fc10972 (pkp/omp) and pkp/omp#601). |
Adding |
This is a specific example of the more general problem, though, that we keep throwing things into |
Hmm, I wonder if this is already solved by #4411... |
We'd definitely catch these more quickly if part of the dev team used PostgreSQL on the regular. (I have it set up for test scripting, but that's it). The best solution will be to improve Travis test coverage, which runs PostgreSQL alongside MySQL. |
Closing this as outdated. If you can reproduce this on a recent stable version, please provide reproduction steps and we can re-open this. |
From https://iopn.library.illinois.edu/books/pww/ follow either series link, e.g. https://iopn.library.illinois.edu/books/pww/catalog/series/afropww, see SQL error. This is the same kind of SQL pedantry as all the other PostgreSQL ones…
The text was updated successfully, but these errors were encountered: