jaguar
jaguar copied to clipboard
jaguar_sqljocky: Final field 'timeZone' is not initialized
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
});
I will fix it.
PRs are welcome.