This commit is contained in:
Kononnable 2020-03-11 22:26:53 +01:00
parent 9ecc3dbbb0
commit 9830f489ee
2 changed files with 6 additions and 2 deletions

View File

@ -409,7 +409,7 @@ export default class OracleDriver extends AbstractDriver {
private static ReturnDefaultValueFunction(
defVal: string | null
): string | undefined {
let defaultVal = defVal;
let defaultVal = defVal?.trim();
if (!defaultVal) {
return undefined;
}

View File

@ -300,7 +300,11 @@ function checkYargsParameters(options: options): options {
: standardSchema;
options.connectionOptions.ssl = argv.ssl;
options.connectionOptions.user = argv.u || standardUser;
options.connectionOptions.skipTables = argv.skipTables.split(",");
let skipTables = argv.skipTables.split(",");
if (skipTables.length === 1 && skipTables[0] === "") {
skipTables = []; // #252
}
options.connectionOptions.skipTables = skipTables;
options.generationOptions.activeRecord = argv.a;
options.generationOptions.generateConstructor = argv.generateConstructor;
options.generationOptions.convertCaseEntity = argv.ce as IGenerationOptions["convertCaseEntity"];