Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When i login to site i catch error
Feb 8 11:36:59 db postgres[2962]: [2-1] web@t1 192.168.100.106(45813) {23505} ERROR: duplicate key value violates unique constraint "flag_content_fid_content_id_uid_sid_key"
Feb 8 11:36:59 db postgres[2962]: [2-2] web@t1 192.168.100.106(45813) {23505} DETAIL: Key (fid, content_id, uid, sid)=(2, 2527, 1, 0) already exists.
Feb 8 11:36:59 db postgres[2962]: [2-3] web@t1 192.168.100.106(45813) {23505} STATEMENT: UPDATE flag_content SET uid='1', sid='0'
Feb 8 11:36:59 db postgres[2962]: [2-4] WHERE (uid = '0') AND (sid = '119')
I try to fix this pls review my patch
Comment | File | Size | Author |
---|---|---|---|
#2 | flag_login_error.patch | 1.34 KB | zviryatko |
flag_login.patch | 1.04 KB | dema502 | |
Comments
Comment #1
zviryatko CreditAttribution: zviryatko commentedI write another patch.
Comment #2
zviryatko CreditAttribution: zviryatko commentedComment #3
joachim CreditAttribution: joachim commentedThis seems weird to me. If a query is started, $query can't be empty.
I'd like some comments on the new bits of code to explain what's being done.
Also, this needs a run through Coder review for coding standards.