Opened 4 years ago

Last modified 2 years ago

#2970 new defect

MySqlLeaseMgr uses wrong function to retrieve error text

Reported by: stephen Owned by:
Priority: medium Milestone: Outstanding Tasks
Component: database-backend Version:
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: Low
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

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.

Subtickets

Change History (1)

comment:1 Changed 2 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

Note: See TracTickets for help on using tickets.