Skip to content

Commit

Permalink
Remove trailing space for CURRENT_TIMESTAMP default value in Oracle (k…
Browse files Browse the repository at this point in the history
  • Loading branch information
licitdev authored and joselcvarela committed May 24, 2023
1 parent 5d8c4f4 commit f5a6e3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dialects/oracledb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export function rawColumnToColumn(rawColumn: RawColumn): Column {

export function parseDefaultValue(value: string | null): string | null {
if (value === null || value.trim().toLowerCase() === 'null') return null;
if (value === 'CURRENT_TIMESTAMP ') return 'CURRENT_TIMESTAMP';

return stripQuotes(value);
}
Expand Down

0 comments on commit f5a6e3e

Please sign in to comment.