https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29457

--- Comment #29 from Marcel de Rooy <[email protected]> ---
This seems like overkill. But it worked for me without CAST warnings etc on
alphanumeric userid's :

UPDATE accountlines
LEFT JOIN borrowers ON CAST(borrowers.userid AS INT) = accountlines.manager_id
SET manager_id = borrowers.borrowernumber 
WHERE manager_id IS NOT NULL AND userid RLIKE "^[0-9]+$"  AND
borrowers.borrowernumber IS NOT NULL AND credit_type_code = 'CANCELLATION'

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to