baztian / jaydebeapi

JayDeBeApi module allows you to connect from Python code to databases using Java JDBC. It provides a Python DB-API v2.0 to that database.
GNU Lesser General Public License v3.0
365 stars 148 forks source link

Information displayed by driver during connection is not readable #186

Open yvestolod opened 3 years ago

yvestolod commented 3 years ago

Hi, I tried connecting to an IMS database on z/OS. I can successfully connect and get data back but during connection, the driver prints the following information to screen:

ԁ?@??k@????@?z??z??@??@???K???K???K????K???ę????@???????????z@???@䕉??????@ę?????@?????@??????z@?????ԁ?@??k@????@?z??z??@??@???K???K???K????K??K??Ö????????م???@?????⅙???Ö???????????????z@⅙???@???@Ö?????@???@?????z@@?ԁ?@??k@????@?z??z??@??@???K???K???K????K??K??Ö????????م???@?????⅙???Ö???????????????z@Ó????@???@Ö?????@???@?????z@@?ԁ?@??k@????@?z??z??@??@???K???K???K????K??K??Ö????????م???@?????⅙???Ö???????????????z@⅙???@????@???@?????z@@?@?@?@?@?@?@?ԁ?@??k@????@?z??z??@??@???K???K???K????K??K??Ö????????م???@?????⅙???Ö???????????????z@Ó????@????@???@?????z@@?@?@?@?@?@?@?ԁ?@??k@????@?z??z??@??@???K???K???K???K???ɕ??????Ɓ?????@?????????????z@???@䕉??????@ę?????@?????@??????z@?????ԁ?@??k@????@?z??z??@??@???K???K???K???K???ɕ??????Ɓ?????@?????????????z@???@䕉??????@ę?????@Ӗ????z@???K???K???K??K??????@Ӆ???z@??????

I believe this is equivalent to the following output returned by the driver when using Java when a successful connection has been established:

Mar 05, 2021 10:13:51 AM com.ibm.ims.drda.t4.T4ConnectionReply checkServerCompatibility INFO: Server IMS Connect DDM level: 1 Mar 05, 2021 10:13:51 AM com.ibm.ims.drda.t4.T4ConnectionReply checkServerCompatibility INFO: Client IMS Connect DDM level: 1 Mar 05, 2021 10:13:51 AM com.ibm.ims.drda.t4.T4ConnectionReply checkServerCompatibility INFO: Server ODBM DDM level: 1 2 3 4 5 6 7 Mar 05, 2021 10:13:51 AM com.ibm.ims.drda.t4.T4ConnectionReply checkServerCompatibility INFO: Client ODBM DDM level: 1 2 3 4 5 6 7 Mar 05, 2021 10:13:51 AM com.ibm.ims.dli.PSBInternalFactory createPSB INFO: IMS Universal Drivers build number: 14094

Thanks.