Issue #3185269 by mondrake, daffie, alexpott, andypost: Introduce...
Issue #3185269 by mondrake, daffie, alexpott, andypost: Introduce Connection::lastInsertId and deprecate the 'return' query option and Database::RETURN_* constants
@trigger_error('Passing "return" option to '.__METHOD__.'() is deprecated in drupal:9.4.0 and is removed in drupal:11.0.0. For data manipulation operations, use dynamic queries instead. See https://www.drupal.org/node/3185520',E_USER_DEPRECATED);
@trigger_error('Passing "return" option to '.__METHOD__.'() is deprecated in drupal:9.4.0 and is removed in drupal:11.0.0. For data manipulation operations, use dynamic queries instead. See https://www.drupal.org/node/3185520',E_USER_DEPRECATED);
}
assert(!isset($options['target']),'Passing "target" option to query() has no effect. See https://www.drupal.org/node/2993033');
// We allow either a pre-bound statement object (deprecated) or a literal
@@ -946,7 +954,7 @@ public function query($query, array $args = [], $options = []) {
// Depending on the type of query we may need to return a different value.
// See DatabaseConnection::defaultOptions() for a description of each