apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53689] New: apr_dbd_prepare should pass offsets to the drivers' prepare-functions
Date Thu, 09 Aug 2012 19:40:45 GMT

          Priority: P2
            Bug ID: 53689
          Assignee: bugs@apr.apache.org
           Summary: apr_dbd_prepare should pass offsets to the drivers'
          Severity: normal
    Classification: Unclassified
                OS: FreeBSD
          Reporter: mi+apache@aldan.algebra.com
          Hardware: PC
            Status: NEW
           Version: HEAD
         Component: APR-util
           Product: APR

Created attachment 29202
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29202&action=edit
Alter the "prepare" API call to pass offsets found by apr_dbd_prepare to the

While trying to fix the FreeTDS driver (see Bug 53666), it occurred to me, that
-- because the work of parsing the statement-templates is already done by the
global apr_dbd_prepare() -- the function should share its findings with the
drivers' prepare-calls.

FreeTDS would certainly benefit from it, while others will not be hurt -- there
need not be an ABI change and the existing drivers will not need recompiling.

A brief discussion with bojan@ revealed, that he is hesitant to change the API,
which is understandable. I, however, believe, that the change's usefulness
makes it worthwhile.

The argument, that the list of offsets would only be useful to FreeTDS is
countered by the fact, that "label" is ignored by most drivers too.

Though I'm submitting a patch for Bug 53666 fixing FreeTDS-driver without this
change, I'd much rather avoid the work-duplication and hackery involved in
reparsing the string, that was already processed above...

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org

View raw message