Skip to content

HCK-18367: fix boolean false in separate column DEFAULT statements - #101

Open
Sylvie-P wants to merge 6 commits into
developfrom
fix/boolean-default-false-separate-statement
Open

Sylvie-P wants to merge 6 commits into
developfrom
fix/boolean-default-false-separate-statement

Conversation

@Sylvie-P

@Sylvie-P Sylvie-P commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor
Sub-bugHCK-18367 [DB2] FE omits boolean default value false in separate ALTER statements

## Summary - Fix `assignTemplates` so boolean `false` is not treated as a missing placeholder when generating separate column DEFAULT statements. - [HCK-18367](https://hackolade.atlassian.net/browse/HCK-18367) (parent [HCK-18361](https://hackolade.atlassian.net/browse/HCK-18361)). - Same change as [hackolade/PostgreSQL#208](https://github.com/hackolade/PostgreSQL/pull/208).

Test plan

  • Boolean default false, separate statements → SET DEFAULT false
  • Inline CREATE default false (may need follow-up if still missing)

Made with Cursor

Sylvie-P and others added 4 commits October 29, 2026 18:03
assignTemplates treated false as missing when filling placeholders, which broke SET DEFAULT false in separate FE statements.

Co-authored-by: Cursor <cursoragent@cursor.com>
getColumnDefault skipped false because of a truthy check; separate ALTER was already fixed via assignTemplates.

Co-authored-by: Cursor <cursoragent@cursor.com>
Document boolean in DefaultValue and use an explicit defined-value check instead of === true/false.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use explicit boolean and zero checks instead of hasDefault chain.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Sylvie-P
Sylvie-P requested a review from taras-dubyk October 30, 2026 07:18
Sylvie-P and others added 2 commits October 30, 2026 09:41
…tColumnDefault.js

Co-authored-by: Taras Dubyk <tarass.dubyk@gmail.com>
Keep reviewer intent (treat only null/undefined as missing) via != null.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud

Copy link
Copy Markdown

@Sylvie-P
Sylvie-P requested a review from taras-dubyk October 30, 2026 08:44
@taras-dubyk
taras-dubyk enabled auto-merge (squash) October 30, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants