it should return ``0`` here to be consistent with other drivers.

Returning the unconverted exception code means that the exception code is still not normalized as it can either be a normalized code or anything. Other driver are returning a known code or 0.

If you want to access the exception code of the SQLAnywhere exception directly, access the code of the linked exception instead (where you will be sure to *always* get the SQLAnywhere exception code)