postgres pull bug #11870

Closed
opened 2025-11-02 09:50:17 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @121132839 on GitHub (Oct 17, 2023).

Description

2023/10/17 13:54:44 ...ers/web/repo/pull.go:1297:CompareAndPullRequestPost() [E]
NewPullRequest: generate pull request index failed: pq: 语法错误 在 "ON" 或附近

Gitea Version

1.20.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

cmd

Database

postgres 9.2

Originally created by @121132839 on GitHub (Oct 17, 2023). ### Description 2023/10/17 13:54:44 ...ers/web/repo/pull.go:1297:CompareAndPullRequestPost() [E] NewPullRequest: generate pull request index failed: pq: 语法错误 在 "ON" 或附近 的 ### Gitea Version 1.20.5 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? cmd ### Database postgres 9.2
GiteaMirror added the issue/needs-feedback label 2025-11-02 09:50:17 -06:00
Author
Owner

@BaiZe1998 commented on GitHub (Oct 17, 2023):

what u want to do ? perhaps you could show your steps, or a more detailed log of your operations

@BaiZe1998 commented on GitHub (Oct 17, 2023): what u want to do ? perhaps you could show your steps, or a more detailed log of your operations
Author
Owner

@121132839 commented on GitHub (Oct 17, 2023):

image

@121132839 commented on GitHub (Oct 17, 2023): ![image](https://github.com/go-gitea/gitea/assets/32965581/5057648b-64f8-4875-9e7c-83dacb208c8b)
Author
Owner

@121132839 commented on GitHub (Oct 17, 2023):

Happens when creating a pull request, using postgre sql.

@121132839 commented on GitHub (Oct 17, 2023): Happens when creating a pull request, using postgre sql.
Author
Owner

@121132839 commented on GitHub (Oct 17, 2023):

windows server

@121132839 commented on GitHub (Oct 17, 2023): windows server
Author
Owner

@lng2020 commented on GitHub (Oct 17, 2023):

Notice that the ON CONFLICT clause is only available from PostgreSQL 9.5. If you are using an earlier version, you will need a workaround to have the upsert feature.

Probably it's about the Postgre version.

@lng2020 commented on GitHub (Oct 17, 2023): > Notice that the ON CONFLICT clause is only available from PostgreSQL 9.5. If you are using an earlier version, you will need a workaround to have the upsert feature. Probably it's about the Postgre version.
Author
Owner

@121132839 commented on GitHub (Oct 17, 2023):

Notice that the ON CONFLICT clause is only available from PostgreSQL 9.5. If you are using an earlier version, you will need a workaround to have the upsert feature.

Probably it's about the Postgre version.

thank you!

@121132839 commented on GitHub (Oct 17, 2023): > > Notice that the ON CONFLICT clause is only available from PostgreSQL 9.5. If you are using an earlier version, you will need a workaround to have the upsert feature. > > Probably it's about the Postgre version. thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11870