Commit b15b55b
fix: refine indentation logic for CHECK constraints, CASE expressions, and nested SELECT statements
- Add indentToCurrentLevel() method to DeparserContext for precise current-level indentation
- Fix over-indentation in CHECK constraint expressions by using proper context spawning
- Improve CASE statement WHEN/ELSE clause alignment using indentToCurrentLevel()
- Resolve nested SELECT indentation issues in SubLink by managing indentLevel properly
- Fix BoolExpr AND/OR indentation to align with logical grouping
- All pretty printing tests now pass including constraints-9, selects-13, misc-8, and misc-9
Co-Authored-By: Dan Lynch <[email protected]>1 parent 9c8e8d8 commit b15b55b
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
127 | 134 | | |
128 | 135 | | |
129 | 136 | | |
| |||
0 commit comments