Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kingkazuma opened this issue Feb 4, 2019 · 1 comment
Open

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

kingkazuma opened this issue Feb 4, 2019 · 1 comment
Assignees

Comments

@kingkazuma
Copy link

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 tejainece self-assigned this Feb 6, 2019
@tejainece
Copy link
Member

tejainece commented Feb 6, 2019

I will fix it.

PRs are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants