Windows ODBC Drivers for BigCommerce - cannot set CustomerGroupId to Null (must be 0)
Posted: Wed 06 Feb 2019 19:37
Hello!
Maybe this is by design, but while I am able to set a value for Customers.CustomerGroupId (such as 1), I am not able to remove members from that group by clearing out that value, such as setting it to Null.
After some experimentation, I saw the BigCommerce API returns a "0" for group (if they are not in a group), yet it's confusing as Access or a SQL SELECT query shows an empty value for Customers.CustomerGroupId which I think should be 0.
So I found I can set the Group to 0 and does work.
Just thought I would pass this along ...
Maybe this is by design, but while I am able to set a value for Customers.CustomerGroupId (such as 1), I am not able to remove members from that group by clearing out that value, such as setting it to Null.
Code: Select all
UPDATE Customers SET Customers.CustomerGroupId = Null WHERE BC_Customers.Email='[email protected]';
So I found I can set the Group to 0 and does work.
Code: Select all
UPDATE Customers SET Customers.CustomerGroupId = 0 WHERE BC_Customers.Email='[email protected]';