refactor testDataSource() method

This commit is contained in:
Alexander Zobnin
2018-08-28 17:22:50 +03:00
parent 8a51d1d854
commit 056d9bcd26
4 changed files with 83 additions and 24 deletions

View File

@@ -48,7 +48,7 @@ export class SQLConnector extends DBConnector {
}
loadSQLDialect() {
if (this.datasourceType === supportedDatabases.postgres) {
if (this.datasourceTypeId === supportedDatabases.postgres) {
this.sqlDialect = postgres;
} else {
this.sqlDialect = mysql;