-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
CountIssues: pq: invalid input syntax for type smallint: "true" #21447
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
Comments
You need to change smallint columns to bool |
I understand that postgres does use boolean values instead of smallints, but which smallint columns are you referring to? Taking a look at Lines 19 to 38 in fd7d83a
mode does not seem to be intended as a boolean value like the query suggests.
|
sorry you are right. It's actually bug in this line: |
Shouldn't filter only 1 and 3? Not sure tho if 2 means to not watch? 🤔 |
Description
After migrating from MariaDB to PostgreSQL using
gitea dump -d postgres
, Gitea produces a status code 500 upon visiting https://example.org/notifications/subscriptions.The error reported in the log is:
Manually issuing the query produces:
This seems to be the only issue I encountered after migration.
Gitea Version
1.18.0+dev-548-g6a6dc97b0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/zenofile/6cdef4553a55bcbebff6135a31511a6d
Screenshots
Git Version
2.36.2
Operating System
Fedora Linux 37
How are you running Gitea?
As a podman (docker) container, migrated from MariaDB to PostgreSQL.
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: