Bug report and patch for SQLGetConnectAttr.c
Matt Grimm <[email protected]> Mon, 4 Nov 2013 14:06:28 -0700
| Newsgroups | gmane.comp.db.unixodbc.devel |
|---|---|
| Message-ID | <CAG4_kQs4d=dPeK18ysJ+gHsdanSiU=tMu8_ykeCDLWSAN9dEuw@mail.gmail.com> |
--089e010d9e72286a7504ea604abe Content-Type: multipart/alternative; boundary=089e010d9e72286a7004ea604abc --089e010d9e72286a7004ea604abc Content-Type: text/plain; charset=ISO-8859-1 Hello, I found a bug in SQLGetConnectAttr.c that makes it impossible to tell if tracing is disabled. When tracing is explicitly disabled with SQLSetConnectAttr(), SQLGetConnectAttr() still returns SQL_OPT_TRACE_ON. I've attached a patch to the 2.3.2 release that fixes the issue for me. If the change is acceptable, would you also consider backporting it to 2.3.1? Thanks, m. --089e010d9e72286a7004ea604abc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div>Hello,<br><br></div>I found a bug in SQLGet= ConnectAttr.c that makes it impossible to tell if tracing is disabled. When= tracing is explicitly disabled with SQLSetConnectAttr(), SQLGetConnectAttr= () still returns SQL_OPT_TRACE_ON.<br> <br></div><div>I've attached a patch to the 2.3.2 release that fixes th= e issue for me. If the change is acceptable, would you also consider backpo= rting it to 2.3.1?<br><br></div><div>Thanks,<br></div><div>m.<br></div> </div></div> --089e010d9e72286a7004ea604abc-- --089e010d9e72286a7504ea604abe Content-Type: text/plain; charset=US-ASCII; name="trace_attr_patch.txt" Content-Disposition: attachment; filename="trace_attr_patch.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hnm6evnv0 ZGlmZiAtTmF1ciBhL0RyaXZlck1hbmFnZXIvU1FMR2V0Q29ubmVjdEF0dHIuYyBiL0RyaXZlck1h bmFnZXIvU1FMR2V0Q29ubmVjdEF0dHIuYwotLS0gYS9Ecml2ZXJNYW5hZ2VyL1NRTEdldENvbm5l Y3RBdHRyLmMJMjAxMy0wNC0xNSAwOTo0MToyNS4wMDAwMDAwMDAgLTA2MDAKKysrIGIvRHJpdmVy TWFuYWdlci9TUUxHZXRDb25uZWN0QXR0ci5jCTIwMTMtMTEtMDQgMTM6Mzc6MzEuNjQ3MDI3MDAw IC0wNzAwCkBAIC0yMDQsNyArMjA0LDcgQEAKICAgICAgICAgICAgIH0KICAgICAgICAgICAgIGVs c2UKICAgICAgICAgICAgIHsKLSAgICAgICAgICAgICAgICAqKChTUUxJTlRFR0VSKil2YWx1ZSkg PSBTUUxfT1BUX1RSQUNFX09OOworICAgICAgICAgICAgICAgICooKFNRTElOVEVHRVIqKXZhbHVl KSA9IFNRTF9PUFRfVFJBQ0VfT0ZGOwogICAgICAgICAgICAgfQogICAgICAgICB9CiAK --089e010d9e72286a7504ea604abe Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ unixODBC-dev mailing list [email protected] http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev --089e010d9e72286a7504ea604abe--