Skip to content

Commit

Permalink
HCK-8025: skip wrapping in quotes of CURRENT_USER (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii4as authored Sep 17, 2024
1 parent cfc026b commit bd02a6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports = ({ _, wrap, assignTemplates, templates, commentIfDeactivated, w
const isDateTime = type => ['date', 'time', 'timestamp', 'interval'].includes(type);

const decorateDefault = (type, defaultValue, isArrayType) => {
const constantsValues = ['current_timestamp', 'null'];
const constantsValues = ['current_timestamp', 'current_user', 'null'];
if (
(isString(type) || isDateTime(type)) &&
!constantsValues.includes(_.toLower(defaultValue)) &&
Expand Down

0 comments on commit bd02a6c

Please sign in to comment.