Opened 7 years ago

Last modified 4 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-all 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 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.


Change History (1)

comment:1 Changed 4 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

Note: See TracTickets for help on using tickets.