fix #252
This commit is contained in:
parent
9ecc3dbbb0
commit
9830f489ee
@ -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;
|
||||
}
|
||||
|
@ -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"];
|
||||
|
Loading…
Reference in New Issue
Block a user