xcall SQL, SQLOP_GET_CONNATR, cmdhdr, optionval
This is the inverse of SQLOP_SET_CONNATR. It uses all the same syntax, symbols, and semantics.
Notes
This operation is not supported for the MySQL native connector. (Apparently the theory is that if you use SQLOP_SET_CONNATR to set an attribute and it doesn’t return an error, then it is set and will remain set, allowing you to keep track of it in your application.)