Fix potential buffer overflow with SQLMETRICS
Authored by: mikeaubury 2016-07-26
Parent: [r12538]
Child: [r12540]