diff --git a/src/database/schemas.ts b/src/database/schemas.ts index 482a536f..a29c151e 100644 --- a/src/database/schemas.ts +++ b/src/database/schemas.ts @@ -66,7 +66,9 @@ export default class Schemas { details.filter ? `where UPPER(SCHEMA_NAME) = ? or UPPER(SYSTEM_SCHEMA_NAME) = ?` : ``, ].join(` `)); - parameters.push(details.filter, details.filter); + if (details.filter) { + parameters.push(details.filter, details.filter); + } break; case `tables`: