BIND 10 #2970: MySqlLeaseMgr uses wrong function to retrieve error text

BIND 10 Development do-not-reply at isc.org
Thu May 23 11:27:36 UTC 2013


#2970: MySqlLeaseMgr uses wrong function to retrieve error text
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:
  stephen                            |                Status:  new
                       Type:         |             Milestone:  DHCP
  defect                             |  Outstanding Tasks
                   Priority:         |              Keywords:
  medium                             |             Sensitive:  0
                  Component:         |           Sub-Project:  DHCP
  dhcpdb                             |  Estimated Difficulty:  0
               CVSS Scoring:         |           Total Hours:  0
            Defect Severity:  Low    |
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
 mysql_lease_mgr.cc: in some places the wrong function is used to retrieve
 error text if a MySQL function fails.

 Currently mysql_error() is used in all cases.  This is wrong: the code
 should use mysql_stmt_error() if a mysql_stmt_xxx() statement fails and
 mysql_error() elsewhere.

-- 
Ticket URL: <http://bind10.isc.org/ticket/2970>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list