See: https://github.com/dbcli/mycli/issues/1087 Applied suggestion from https://github.com/dbcli/mycli/issues/1087#issuecomment-1275053520