Skip to content

Alternative for "ResultSetHeader.changedRows" Β #2456

@CComparon

Description

@CComparon

Hello gents,

In recent versions of mysql2, the changedRows result set header is not deprecated (see below).
The documentation says to use affectedRows instead, which really isn't the same information though.
Curious about the rationale for this deprecation and possible alternative for this property?

Many thanks

declare interface ResultSetHeader {
  constructor: {
    name: 'ResultSetHeader';
  };
  affectedRows: number;
  fieldCount: number;
  info: string;
  insertId: number;
  serverStatus: number;
  warningStatus: number;
  /**
   * @deprecated
   * `changedRows` is deprecated and might be removed in the future major release. Please use `affectedRows` property instead.
   */
  changedRows: number;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions