Update for node-mysql API change, err.number -> err.code.