217
217
DROP TABLE a, d, h, k, n , p ;
218
218
--echo End Bug#592444 test
220
--echo Bug#586051 start
221
--echo -Server allowing JOIN on NULL values in certain cases if query includes ORDER BY clause
224
DROP TABLE IF EXISTS `i`;
226
`col_int_key` int DEFAULT NULL,
227
`pk` int NOT NULL AUTO_INCREMENT,
229
KEY `col_int_key` (`col_int_key`)
232
ALTER TABLE `i` DISABLE KEYS;
233
INSERT INTO `i` VALUES (-480247808,1),(-1066663936,2),(NULL,3),(NULL,4),(-1583808512,5),(NULL,6),(NULL,7),(NULL,8),(0,9),(-219152384,10);
234
ALTER TABLE `i` ENABLE KEYS;
236
DROP TABLE IF EXISTS `b`;
238
`col_int_key` int DEFAULT NULL,
239
`col_int` int DEFAULT NULL,
240
`pk` int NOT NULL AUTO_INCREMENT,
242
KEY `col_int_key` (`col_int_key`)
245
ALTER TABLE `b` DISABLE KEYS;
246
INSERT INTO `b` VALUES (NULL,7,1);
247
ALTER TABLE `b` ENABLE KEYS;
250
#/* Begin test case for query 0 */
252
SELECT table2 .`col_int` field3
253
FROM i table1 JOIN b table2 ON table1 .`col_int_key` = table2 .`col_int_key`
254
WHERE table1 .`pk` IN ( 4 )
256
#/* End of test case for query 0 */
258
#/* Begin test case for query 1 */
260
SELECT table2 .`col_int` field3
261
FROM i table1 JOIN b table2 ON table1 .`col_int_key` = table2 .`col_int_key`
262
WHERE table1 .`pk` IN ( 4 ) /* TRANSFORM_OUTCOME_UNORDERED_MATCH */ ;
264
#/* End of test case for query 1 */
269
--echo End Bug#586051 test