sqlxb icon indicating copy to clipboard operation
sqlxb copied to clipboard

bug of optimizeFromBuiler, !strings.Contains(ele.join.join, "LEFT_JOIN"))

Open sim-wangyan opened this issue 2 years ago • 0 comments

x.removeFromBuilder(x.sxs, func(useds *[]*FromX, ele *FromX, i int) bool {
	if i == 0 {
		return false
	}
	if ele.sub != nil && (ele.join != nil && !strings.Contains(ele.join.join, "LEFT_JOIN")) {
		return false
	}

should: strings.Contains(ele.join.join, "LEFT")

Ⅵ. Environment:

  • go version :
  • sqlxb version: v0.5.9

sim-wangyan avatar Dec 13 '23 03:12 sim-wangyan