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)


Illuminated Cloud Version:

Comments (4)

  1. Scott Wells repo owner

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

  2. Log in to comment