Skip to content

Commit 6f328ce

Browse files
fix: Restrict type inference to MySQL engine only
1 parent 605cbc5 commit 6f328ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/compiler/infer_type.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ func (c *Compiler) inferExprType(node ast.Node, tables []*Table) *Column {
2525
return nil
2626
}
2727

28+
// Only MySQL is supported for now - return nil for other engines
29+
// to maintain existing behavior
30+
if c.conf.Engine != config.EngineMySQL {
31+
return nil
32+
}
33+
2834
switch n := node.(type) {
2935
case *ast.ColumnRef:
3036
// Try to resolve the column reference

0 commit comments

Comments
 (0)