Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin authored Apr 30, 2024
1 parent 6e7eb1e commit f0fcfb1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ export function identify(query: string, options: IdentifyOptions = {}): Identify
throw new Error(`Unknown dialect. Allowed values: ${DIALECTS.join(', ')}`);
}

let paramTypes: ParamTypes;

// Default parameter types for each dialect
paramTypes = options.paramTypes || defaultParamTypesFor(dialect);
const paramTypes = options.paramTypes || defaultParamTypesFor(dialect);

const result = parse(query, isStrict, dialect, options.identifyTables, paramTypes);
const sort = dialect === 'psql' && !options.paramTypes;
Expand Down

0 comments on commit f0fcfb1

Please sign in to comment.