I open project page and click to watcher or start counter. This gives me error 500 (both org/repo/watchers and org/repo/stars) in logs: ``` ...routers/repo/view.go:262 renderItems()] [E] getter: pq: syntax error at or near "." ``` Gogs v0.7.33 DB: Postgresql 9.3.10
Activity
LeKovr commentedon Dec 13, 2015
The same error in Gogs v 0.8.0.1212
unknwon commentedon Dec 13, 2015
Thanks your feedback!
Can you dump the
xorm.loghere as well?LeKovr commentedon Dec 13, 2015
For this gogs.log record:
attached xorm.log.txt
unknwon commentedon Dec 13, 2015
Thanks!
Is this a valid SQL query in PostgreSQL?
If not, can you help debug which part is exactly wrong? The error from pg is so disappointing...
LeKovr commentedon Dec 13, 2015
No, this is invalid SQL.
You should use this
or even
unknwon commentedon Dec 13, 2015
Thanks, the
useris the problem I'm thinking.Does
would work?
LeKovr commentedon Dec 14, 2015
Nope, only double quotes allowed. And
usermust be doublequoted - it is keyword#2176 fix 500 on /watchers & /stars for pg
unknwon commentedon Dec 14, 2015
Hi, can you checkout
developbranch and help test?LeKovr commentedon Dec 14, 2015
Yes I can)
LeKovr commentedon Dec 14, 2015
Develop branch works fine. Thank you, Unknwon!
unknwon commentedon Dec 14, 2015
👏 Thanks your confirmation!
kolesar-andras commentedon Dec 17, 2015
I have got the same error 500, and the same message in xorm.log. Thank you for the fix.