Jaguar-dart / jaguar

Jaguar, a server framework built for speed, simplicity and extensible. ORM, Session, Authentication & Authorization, OAuth
http://jaguar-dart.github.io
463 stars 34 forks source link

jaguar_sqljocky: Final field 'timeZone' is not initialized #128

Open kingkazuma opened 5 years ago

kingkazuma commented 5 years ago

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
  });
tejainece commented 5 years ago

I will fix it.

PRs are welcome.