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

Handle null FileRootSize values on Postgres #6328

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

labkey-jeckels
Copy link
Contributor

@labkey-jeckels labkey-jeckels commented Feb 15, 2025

Rationale

I'm seeing this exception Postgres 14. I have a few containers with invalid file roots so the size is null.

Caused by: org.postgresql.util.PSQLException: ERROR: column "filerootsize" is of type bigint but expression is of type character varying
  Hint: You will need to rewrite or cast the expression.
  Position: 69
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2733)
...
	at org.labkey.api.data.SqlExecutor.execute(SqlExecutor.java:75)
	at org.labkey.filecontent.FileRootMaintenanceTask.lambda$run$0(FileRootMaintenanceTask.java:86)

Changes

  • Specify the type of the null

@labkey-jeckels labkey-jeckels merged commit 5e8f54a into develop Feb 15, 2025
6 checks passed
@labkey-jeckels labkey-jeckels deleted the fb_fileRootSizeNull branch February 15, 2025 21:49
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

Successfully merging this pull request may close these issues.

2 participants