Use errorCode to verify query execute result