mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Item::print(): remove redundant parentheses
by introducing new Item::precedence() method and using it to decide whether parentheses are required
This commit is contained in:
@@ -18,7 +18,7 @@ EXPLAIN
|
||||
"access_type": "ALL",
|
||||
"rows": 10,
|
||||
"filtered": 100,
|
||||
"attached_condition": "(t1.a in (2,3,4))"
|
||||
"attached_condition": "t1.a in (2,3,4)"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,7 +39,7 @@ ANALYZE
|
||||
"r_total_time_ms": "REPLACED",
|
||||
"filtered": 100,
|
||||
"r_filtered": 30,
|
||||
"attached_condition": "(t1.a in (2,3,4))"
|
||||
"attached_condition": "t1.a in (2,3,4)"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,7 +59,7 @@ ANALYZE
|
||||
"r_rows": 10,
|
||||
"r_filtered": 30,
|
||||
"r_total_time_ms": "REPLACED",
|
||||
"attached_condition": "(t1.a in (2,3,4))"
|
||||
"attached_condition": "t1.a in (2,3,4)"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,7 +79,7 @@ ANALYZE
|
||||
"r_rows": 10,
|
||||
"r_filtered": 0,
|
||||
"r_total_time_ms": "REPLACED",
|
||||
"attached_condition": "(t1.a in (20,30,40))"
|
||||
"attached_condition": "t1.a in (20,30,40)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user