jaguar icon indicating copy to clipboard operation
jaguar copied to clipboard

jaguar_sqljocky: Final field 'timeZone' is not initialized

Open kingkazuma opened this issue 5 years ago • 1 comments

jaguar_sqljocky 2.4.1 MySqlManager构造函数未初始化成员变量timeZone

  MySqlManager(
    this.databaseName, {
    this.host: 'localhost',
    this.port: 5432,
    this.username: 'root',
    this.password,
    this.useSsl: false,
    this.timeoutInSeconds: 30,
  });

会产生异常:

Error: Final field 'timeZone' is not initialized.
Try to initialize the field in the declaration or in every constructor.

修改后正常运行:

  MySqlManager(
    this.databaseName, {
    this.host: 'localhost',
    this.port: 5432,
    this.username: 'root',
    this.password,
    this.useSsl: false,
    this.timeoutInSeconds: 30,
    this.timeZone
  });

kingkazuma avatar Feb 04 '19 19:02 kingkazuma

I will fix it.

PRs are welcome.

tejainece avatar Feb 06 '19 11:02 tejainece