Database.update(SObject[], Database.DMLOptions) signature not recognized as valid

Issue #1520 resolved
Marco Rodriguez created an issue

For the following snippet of code:

Database.DMLOptions dlo = new Database.DMLOptions();
dlo.optAllOrNone = false;
return Database.update(users, dlo);

Line 3 shows an error saying that “Expected argument of type Boolean; found Database.DMLOptions”:

When saving the code copiles without errors and in the documentation it does list a method with the following signature:

public static Database.SaveResult[] update(sObject[] recordsToUpdate, Database.DMLOptions dmlOptions)

Reference: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_database.htm

Illuminated Cloud Version: 2.1.0.0

Comments (4)

  1. Scott Wells repo owner

    Delivered in 2.1.0.1. Note that upon updating, you'll need to regenerate your OST to pick up the fix.

  2. Log in to comment