Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: Restrict type inference to MySQL engine only
  • Loading branch information
rubensantoniorosa2704 committed Nov 7, 2025
commit 6f328cec32b280ca70ed45f30d89132ffa87569c
6 changes: 6 additions & 0 deletions internal/compiler/infer_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ func (c *Compiler) inferExprType(node ast.Node, tables []*Table) *Column {
return nil
}

// Only MySQL is supported for now - return nil for other engines
// to maintain existing behavior
if c.conf.Engine != config.EngineMySQL {
return nil
}

switch n := node.(type) {
case *ast.ColumnRef:
// Try to resolve the column reference
Expand Down
Loading