Skip to content

Commit

Permalink
Compare meta value and Mollie ID as binary strings to avoid collate i…
Browse files Browse the repository at this point in the history
…ssues.

See #32 (comment).

Co-Authored-By: Reüel van der Steege <10371164+rvdsteege@users.noreply.github.com>
  • Loading branch information
remcotolsma and rvdsteege committed Sep 27, 2023
1 parent d0daf64 commit fd373d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ private function convert_user_meta() {
$wpdb->pronamic_pay_mollie_customers AS mollie_customer
INNER JOIN
$wpdb->usermeta AS wp_user_meta
ON wp_user_meta.meta_value = mollie_customer.mollie_id
ON BINARY wp_user_meta.meta_value = mollie_customer.mollie_id
INNER JOIN
$wpdb->users AS wp_user
ON wp_user_meta.user_id = wp_user.ID
Expand Down

0 comments on commit fd373d1

Please sign in to comment.