Unfortunately politicians all along have been doing what is best for themselves and their party...Not if it is a non-binding referendum. When non-binding, the politician's job is to consider it and do what is best for the country.
Hence the mess we are now in!