diff --git a/src/drivers/OracleDriver.ts b/src/drivers/OracleDriver.ts index 9518d54..81d4ad2 100644 --- a/src/drivers/OracleDriver.ts +++ b/src/drivers/OracleDriver.ts @@ -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; } diff --git a/src/index.ts b/src/index.ts index 15e34c8..2ac00ef 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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"];