Skip to content

Commit

Permalink
HCK-8025: skip wrapping in quotes of CURRENT_USER (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii4as authored Sep 17, 2024
1 parent 077daa8 commit 1401872
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 = ({ _, assignTemplates, templates, commentIfDeactivated, wrapCom
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 1401872

Please sign in to comment.