Skip to content

Commit d7f2758

Browse files
fix(mysql): map division opcodes to the correct operators
1 parent 394bdc7 commit d7f2758

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

internal/engine/dolphin/convert.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ func opToName(o opcode.Op) string {
137137
// case opcode.BitNeg:
138138
// case opcode.Case:
139139
// case opcode.Div:
140+
case opcode.Div:
141+
return "/"
140142
case opcode.EQ:
141143
return "="
142144
case opcode.GE:
@@ -145,7 +147,7 @@ func opToName(o opcode.Op) string {
145147
return ">"
146148
// case opcode.In:
147149
case opcode.IntDiv:
148-
return "/"
150+
return "div"
149151
// case opcode.IsFalsity:
150152
// case opcode.IsNull:
151153
// case opcode.IsTruth:

0 commit comments

Comments
 (0)