Hi George,
My coworker helped me to verify that setting db2set DB2_ENABLE_BOOL_DESC=NO can fixed the error in Db2 11.5. I don't see this error in Db2 11.1. Thank you very much.
------------------------------
YUECHANG MEI
------------------------------
Original Message:
Sent: Thu August 01, 2019 09:15 AM
From: GEORGE BAKLARZ
Subject: db2 docker container error when convert boolean to uint8
Hi Yuechang. I'm assuming that the previous version of Db2 you were running was 11.1 and the latest container is 11.5? I know that there were some changes in the client code that may have changed the way that boolean values were being interpreted. Can you update the Db2 environment variable in your Docker container and restart the database to see if this makes any difference to the results?
db2set DB2_ENABLE_BOOL_DESC=NO
My understanding is that in Db2 11.5 this value is set to YES which means that the driver code gets a descriptor that says it is a boolean value where in Db2 11.1 is was NO which means it is returned as an integer value. I have seen this error occur with Python and Jupyter notebooks when using 11.5 and this change fixed the errors.
------------------------------
GEORGE BAKLARZ
------------------------------