Skip to content

Commit d394bd4

Browse files
fuziontechclaude
andcommitted
Remove duplicate TypeCast check in isUnsupportedDefault
The TypeCast case was already handled earlier in the function with recursion, making the second check unreachable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 3e3c7da commit d394bd4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

transpiler/transform/ddl.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,6 @@ func (t *DDLTransform) isUnsupportedDefault(expr *pg_query.Node) bool {
297297
}
298298
}
299299

300-
// TypeCast (e.g., 'value'::type)
301-
if expr.GetTypeCast() != nil {
302-
return true
303-
}
304-
305300
// Column references, expressions, etc. are not supported
306301
return true
307302
}

0 commit comments

Comments
 (0)