From 7f1a12d7a7d7aa460de5bb32a368f52c11219a4e Mon Sep 17 00:00:00 2001 From: Willie Ruemmele Date: Thu, 6 Aug 2020 11:59:14 -0600 Subject: [PATCH] fix: changed to be greater than, not greater than or equal to --- src/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.ts b/src/connection.ts index c47cb851f3..19341a4156 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -278,7 +278,7 @@ export class Connection extends JSForceConnection { .on('error', err => reject(err)) .on('end', () => { const totalSize = getNumber(query, 'totalSize') || maxFetch; - if (totalSize >= records.length) { + if (totalSize > records.length) { process.emitWarning( `The query result is missing ${totalSize - records.length} records due to a 10,000 limit for performance reasons. Increase the number of records returned by setting the config value "maxQueryLimit" or the environment variable "SFDX_MAX_QUERY_LIMIT" to ${totalSize} or greater than 10,000.`