Skip to content

Commit 1bb9041

Browse files
committed
Merge 10.3 into 10.4
2 parents 9b14e37 + 1595ff8 commit 1bb9041

File tree

8 files changed

+276
-9
lines changed

8 files changed

+276
-9
lines changed

mysql-test/main/func_like.result

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,120 @@ a b c d
289289
3 f_ 1 0 1
290290
3 f\_ 0 1 0
291291
drop table t1;
292+
#
293+
# MDEV-17359 - Extend expression supported by like (| & << >> || + - * / DIV MOD ^ )
294+
#
295+
SELECT 1 LIKE +1;
296+
1 LIKE +1
297+
1
298+
SELECT -1 LIKE -1;
299+
-1 LIKE -1
300+
1
301+
SELECT 1 LIKE (1);
302+
1 LIKE (1)
303+
1
304+
SELECT 1 LIKE 1|2, 3 LIKE 1|2;
305+
1 LIKE 1|2 3 LIKE 1|2
306+
0 1
307+
SELECT 1 LIKE 3&2, 2 LIKE 3&2;
308+
1 LIKE 3&2 2 LIKE 3&2
309+
0 1
310+
SELECT 1 LIKE 1>>0, 1 LIKE 1>>1 , 64 LIKE 256>>2;
311+
1 LIKE 1>>0 1 LIKE 1>>1 64 LIKE 256>>2
312+
1 0 1
313+
SELECT 1 LIKE 1<<0, 1 LIKE 0<<2, 32 LIKE 1<<5;
314+
1 LIKE 1<<0 1 LIKE 0<<2 32 LIKE 1<<5
315+
1 0 1
316+
SELECT 1 LIKE 1||2, 1 LIKE 0||2;
317+
1 LIKE 1||2 1 LIKE 0||2
318+
1 1
319+
SELECT 2 LIKE 1+1, 2.0 LIKE 1+1.0, 2 LIKE 1+1.0, 1+1 LIKE 2, 1+1 LIKE 0+2;
320+
2 LIKE 1+1 2.0 LIKE 1+1.0 2 LIKE 1+1.0 1+1 LIKE 2 1+1 LIKE 0+2
321+
1 1 0 1 1
322+
SELECT 0 LIKE 1-1, 2.0 LIKE 3-1.0, 2 LIKE 3-1.0, 2-1 LIKE 1, 3-1 LIKE 4-1;
323+
0 LIKE 1-1 2.0 LIKE 3-1.0 2 LIKE 3-1.0 2-1 LIKE 1 3-1 LIKE 4-1
324+
1 1 0 1 0
325+
SELECT 1 LIKE 1*1, 2.0 LIKE 2*1.0, 2 LIKE 2*1.0, 2*1 LIKE 2, 2*3 LIKE 6*1;
326+
1 LIKE 1*1 2.0 LIKE 2*1.0 2 LIKE 2*1.0 2*1 LIKE 2 2*3 LIKE 6*1
327+
1 1 0 1 1
328+
SELECT 1 LIKE 1/1, 1.0000 LIKE 1/1, 1.0000 LIKE 1/1.000000, 1.000000 LIKE 1.0/1.000000, 1/1 like 1/1;
329+
1 LIKE 1/1 1.0000 LIKE 1/1 1.0000 LIKE 1/1.000000 1.000000 LIKE 1.0/1.000000 1/1 like 1/1
330+
0 1 1 0 1
331+
SELECT 1 LIKE 1 DIV 1, 1 LIKE 1.0 DIV 1.0 ;
332+
1 LIKE 1 DIV 1 1 LIKE 1.0 DIV 1.0
333+
1 1
334+
SELECT 2 LIKE 10 MOD 8, 1.9 LIKE 10 MOD 8.1, 1.9 LIKE 10 MOD 8.10 ;
335+
2 LIKE 10 MOD 8 1.9 LIKE 10 MOD 8.1 1.9 LIKE 10 MOD 8.10
336+
1 1 0
337+
SELECT 1 LIKE CAST(1 AS CHAR(10));
338+
1 LIKE CAST(1 AS CHAR(10))
339+
1
340+
SELECT 1 LIKE CASE WHEN 1=1 THEN '1' ELSE '0' END;
341+
1 LIKE CASE WHEN 1=1 THEN '1' ELSE '0' END
342+
1
343+
SELECT 1 LIKE COALESCE(1+0, 1);
344+
1 LIKE COALESCE(1+0, 1)
345+
1
346+
CREATE TABLE t1(c1 INTEGER, c2 INTEGER);
347+
INSERT INTO t1 VALUES(1,1);
348+
INSERT INTO t1 VALUES(1,2);
349+
SELECT c1, c2, c1|c2, 1 LIKE c1|c2 FROM t1 ORDER BY c2;
350+
c1 c2 c1|c2 1 LIKE c1|c2
351+
1 1 1 1
352+
1 2 3 0
353+
SELECT c1, c2, c1&c2, 1 LIKE c1&c2 FROM t1 ORDER BY c2;
354+
c1 c2 c1&c2 1 LIKE c1&c2
355+
1 1 1 1
356+
1 2 0 0
357+
SELECT c1, c2, c2>>c1, 1 LIKE c2>>c1 FROM t1 ORDER BY c2;
358+
c1 c2 c2>>c1 1 LIKE c2>>c1
359+
1 1 0 0
360+
1 2 1 1
361+
SELECT c1, c2, c2<<c1, 2 LIKE c2<<c1 FROM t1 ORDER BY c2;
362+
c1 c2 c2<<c1 2 LIKE c2<<c1
363+
1 1 2 1
364+
1 2 4 0
365+
SELECT c1, c2, c1||c2, 1 LIKE c1||c2 FROM t1 ORDER BY c2;
366+
c1 c2 c1||c2 1 LIKE c1||c2
367+
1 1 1 1
368+
1 2 1 1
369+
SELECT c1, c2, c1+c2, 2 LIKE c1+c2 FROM t1 ORDER BY c2;
370+
c1 c2 c1+c2 2 LIKE c1+c2
371+
1 1 2 1
372+
1 2 3 0
373+
SELECT c1, c2, c1-c2, -1 LIKE c1-c2 FROM t1 ORDER BY c2;
374+
c1 c2 c1-c2 -1 LIKE c1-c2
375+
1 1 0 0
376+
1 2 -1 1
377+
SELECT c1, c2, c1*c2, 2 LIKE c1*c2 FROM t1 ORDER BY c2;
378+
c1 c2 c1*c2 2 LIKE c1*c2
379+
1 1 1 0
380+
1 2 2 1
381+
SELECT c1, c2, c1/c2, 0.5000 LIKE c1/c2 FROM t1 ORDER BY c2;
382+
c1 c2 c1/c2 0.5000 LIKE c1/c2
383+
1 1 1.0000 0
384+
1 2 0.5000 1
385+
SELECT c1, c2, c1 DIV c2, 0 LIKE c1 DIV c2 FROM t1 ORDER BY c2;
386+
c1 c2 c1 DIV c2 0 LIKE c1 DIV c2
387+
1 1 1 0
388+
1 2 0 1
389+
SELECT c1, c2, c1 MOD c2, 0 LIKE c1 MOD c2 FROM t1 ORDER BY c2;
390+
c1 c2 c1 MOD c2 0 LIKE c1 MOD c2
391+
1 1 0 1
392+
1 2 1 0
393+
CREATE VIEW v1 AS
394+
SELECT 1 LIKE c1|c2, 1 LIKE c1&c2, 1 LIKE c2>>c1, 2 LIKE c2<<c1,
395+
1 LIKE c1||c2, 2 LIKE c1+c2, -1 LIKE c1-c2, 2 LIKE c1*c2,
396+
0.5000 LIKE c1/c2, 0 LIKE c1 DIV c2, 0 LIKE c1 MOD c2
397+
FROM t1 ORDER BY c2;
398+
SELECT * FROM v1;
399+
1 LIKE c1|c2 1 LIKE c1&c2 1 LIKE c2>>c1 2 LIKE c2<<c1 1 LIKE c1||c2 2 LIKE c1+c2 -1 LIKE c1-c2 2 LIKE c1*c2 0.5000 LIKE c1/c2 0 LIKE c1 DIV c2 0 LIKE c1 MOD c2
400+
1 1 0 1 1 1 0 0 0 0 1
401+
0 0 1 0 1 0 1 1 1 1 0
402+
EXPLAIN EXTENDED SELECT * FROM v1;
403+
id select_type table type possible_keys key key_len ref rows filtered Extra
404+
1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using filesort
405+
Warnings:
406+
Note 1003 select 1 like `test`.`t1`.`c1` | `test`.`t1`.`c2` AS `1 LIKE c1|c2`,1 like `test`.`t1`.`c1` & `test`.`t1`.`c2` AS `1 LIKE c1&c2`,1 like `test`.`t1`.`c2` >> `test`.`t1`.`c1` AS `1 LIKE c2>>c1`,2 like `test`.`t1`.`c2` << `test`.`t1`.`c1` AS `2 LIKE c2<<c1`,1 like `test`.`t1`.`c1` or `test`.`t1`.`c2` <> 0 AS `1 LIKE c1||c2`,2 like `test`.`t1`.`c1` + `test`.`t1`.`c2` AS `2 LIKE c1+c2`,-1 like `test`.`t1`.`c1` - `test`.`t1`.`c2` AS `-1 LIKE c1-c2`,2 like `test`.`t1`.`c1` * `test`.`t1`.`c2` AS `2 LIKE c1*c2`,0.5000 like `test`.`t1`.`c1` / `test`.`t1`.`c2` AS `0.5000 LIKE c1/c2`,0 like `test`.`t1`.`c1` DIV `test`.`t1`.`c2` AS `0 LIKE c1 DIV c2`,0 like `test`.`t1`.`c1` MOD `test`.`t1`.`c2` AS `0 LIKE c1 MOD c2` from `test`.`t1` order by `test`.`t1`.`c2`
407+
DROP VIEW v1;
408+
DROP TABLE t1;

mysql-test/main/func_like.test

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,53 @@ insert t1 (a) values ('3 f_'), ('3 f\_');
207207
set sql_mode=default;
208208
select * from t1;
209209
drop table t1;
210+
211+
--echo #
212+
--echo # MDEV-17359 - Extend expression supported by like (| & << >> || + - * / DIV MOD ^ )
213+
--echo #
214+
215+
SELECT 1 LIKE +1;
216+
SELECT -1 LIKE -1;
217+
SELECT 1 LIKE (1);
218+
SELECT 1 LIKE 1|2, 3 LIKE 1|2;
219+
SELECT 1 LIKE 3&2, 2 LIKE 3&2;
220+
SELECT 1 LIKE 1>>0, 1 LIKE 1>>1 , 64 LIKE 256>>2;
221+
SELECT 1 LIKE 1<<0, 1 LIKE 0<<2, 32 LIKE 1<<5;
222+
SELECT 1 LIKE 1||2, 1 LIKE 0||2;
223+
SELECT 2 LIKE 1+1, 2.0 LIKE 1+1.0, 2 LIKE 1+1.0, 1+1 LIKE 2, 1+1 LIKE 0+2;
224+
SELECT 0 LIKE 1-1, 2.0 LIKE 3-1.0, 2 LIKE 3-1.0, 2-1 LIKE 1, 3-1 LIKE 4-1;
225+
SELECT 1 LIKE 1*1, 2.0 LIKE 2*1.0, 2 LIKE 2*1.0, 2*1 LIKE 2, 2*3 LIKE 6*1;
226+
SELECT 1 LIKE 1/1, 1.0000 LIKE 1/1, 1.0000 LIKE 1/1.000000, 1.000000 LIKE 1.0/1.000000, 1/1 like 1/1;
227+
SELECT 1 LIKE 1 DIV 1, 1 LIKE 1.0 DIV 1.0 ;
228+
SELECT 2 LIKE 10 MOD 8, 1.9 LIKE 10 MOD 8.1, 1.9 LIKE 10 MOD 8.10 ;
229+
230+
SELECT 1 LIKE CAST(1 AS CHAR(10));
231+
SELECT 1 LIKE CASE WHEN 1=1 THEN '1' ELSE '0' END;
232+
SELECT 1 LIKE COALESCE(1+0, 1);
233+
234+
CREATE TABLE t1(c1 INTEGER, c2 INTEGER);
235+
INSERT INTO t1 VALUES(1,1);
236+
INSERT INTO t1 VALUES(1,2);
237+
238+
SELECT c1, c2, c1|c2, 1 LIKE c1|c2 FROM t1 ORDER BY c2;
239+
SELECT c1, c2, c1&c2, 1 LIKE c1&c2 FROM t1 ORDER BY c2;
240+
SELECT c1, c2, c2>>c1, 1 LIKE c2>>c1 FROM t1 ORDER BY c2;
241+
SELECT c1, c2, c2<<c1, 2 LIKE c2<<c1 FROM t1 ORDER BY c2;
242+
SELECT c1, c2, c1||c2, 1 LIKE c1||c2 FROM t1 ORDER BY c2;
243+
SELECT c1, c2, c1+c2, 2 LIKE c1+c2 FROM t1 ORDER BY c2;
244+
SELECT c1, c2, c1-c2, -1 LIKE c1-c2 FROM t1 ORDER BY c2;
245+
SELECT c1, c2, c1*c2, 2 LIKE c1*c2 FROM t1 ORDER BY c2;
246+
SELECT c1, c2, c1/c2, 0.5000 LIKE c1/c2 FROM t1 ORDER BY c2;
247+
SELECT c1, c2, c1 DIV c2, 0 LIKE c1 DIV c2 FROM t1 ORDER BY c2;
248+
SELECT c1, c2, c1 MOD c2, 0 LIKE c1 MOD c2 FROM t1 ORDER BY c2;
249+
250+
CREATE VIEW v1 AS
251+
SELECT 1 LIKE c1|c2, 1 LIKE c1&c2, 1 LIKE c2>>c1, 2 LIKE c2<<c1,
252+
1 LIKE c1||c2, 2 LIKE c1+c2, -1 LIKE c1-c2, 2 LIKE c1*c2,
253+
0.5000 LIKE c1/c2, 0 LIKE c1 DIV c2, 0 LIKE c1 MOD c2
254+
FROM t1 ORDER BY c2;
255+
256+
SELECT * FROM v1;
257+
EXPLAIN EXTENDED SELECT * FROM v1;
258+
DROP VIEW v1;
259+
DROP TABLE t1;

mysql-test/suite/compat/oracle/r/func_concat.result

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,3 +322,72 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
322322
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
323323
Warnings:
324324
Note 1003 select concat_operator_oracle(-1,0 ^ 1) AS "a"
325+
#
326+
# MDEV-17359 Concatenation operator || in like expression failed in sql_mode=ORACLE
327+
#
328+
SELECT 'abc' LIKE 'a'||'%';
329+
'abc' LIKE 'a'||'%'
330+
1
331+
EXPLAIN EXTENDED SELECT 'abc' LIKE 'a'||'%';
332+
id select_type table type possible_keys key key_len ref rows filtered Extra
333+
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
334+
Warnings:
335+
Note 1003 select 'abc' like concat_operator_oracle('a','%') AS "'abc' LIKE 'a'||'%'"
336+
SELECT 'x' FROM DUAL WHERE 11 LIKE 1||1;
337+
x
338+
x
339+
SELECT 'x' FROM DUAL WHERE 1||1 LIKE 11;
340+
x
341+
x
342+
SELECT 'x' FROM DUAL WHERE 1||1 LIKE 1||1;
343+
x
344+
x
345+
CREATE TABLE t1 (c1 VARCHAR(10),c2 VARCHAR(10), ord INTEGER);
346+
INSERT INTO t1 VALUES ('a', 'ab' ,1);
347+
INSERT INTO t1 VALUES ('ab', 'ab', 2);
348+
INSERT INTO t1 VALUES ('abc', 'ab', 3);
349+
SELECT c1 FROM t1 WHERE c1 LIKE '%'||'b' ORDER BY ord;
350+
c1
351+
ab
352+
EXPLAIN EXTENDED SELECT c1 FROM t1 WHERE c1 LIKE '%'||'b' ORDER BY ord;
353+
id select_type table type possible_keys key key_len ref rows filtered Extra
354+
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using filesort
355+
Warnings:
356+
Note 1003 select "test"."t1"."c1" AS "c1" from "test"."t1" where "test"."t1"."c1" like <cache>(concat_operator_oracle('%','b')) order by "test"."t1"."ord"
357+
SELECT c1 FROM t1 WHERE c1 LIKE c2||'%'||'c' ORDER BY ord;
358+
c1
359+
abc
360+
EXPLAIN EXTENDED SELECT c1 FROM t1 WHERE c1 LIKE c2||'%'||'c' ORDER BY ord;
361+
id select_type table type possible_keys key key_len ref rows filtered Extra
362+
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where; Using filesort
363+
Warnings:
364+
Note 1003 select "test"."t1"."c1" AS "c1" from "test"."t1" where "test"."t1"."c1" like concat_operator_oracle(concat_operator_oracle("test"."t1"."c2",'%'),'c') order by "test"."t1"."ord"
365+
SELECT 'x' FROM t1 WHERE c1||c2 LIKE 'aa%';
366+
x
367+
x
368+
EXPLAIN EXTENDED SELECT 'x' FROM t1 WHERE c1||c2 LIKE 'aa%';
369+
id select_type table type possible_keys key key_len ref rows filtered Extra
370+
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
371+
Warnings:
372+
Note 1003 select 'x' AS "x" from "test"."t1" where concat_operator_oracle("test"."t1"."c1","test"."t1"."c2") like 'aa%'
373+
SELECT 'x' FROM t1 WHERE c1||c2 LIKE c2||c1;
374+
x
375+
x
376+
EXPLAIN EXTENDED SELECT 'x' FROM t1 WHERE c1||c2 LIKE c2||c1;
377+
id select_type table type possible_keys key key_len ref rows filtered Extra
378+
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where
379+
Warnings:
380+
Note 1003 select 'x' AS "x" from "test"."t1" where concat_operator_oracle("test"."t1"."c1","test"."t1"."c2") like concat_operator_oracle("test"."t1"."c2","test"."t1"."c1")
381+
CREATE VIEW v1 AS SELECT c1, c2, c1 LIKE c2||'_' FROM t1 ORDER BY ord;
382+
SELECT * FROM v1;
383+
c1 c2 c1 LIKE c2||'_'
384+
a ab 0
385+
ab ab 0
386+
abc ab 1
387+
EXPLAIN EXTENDED SELECT * FROM v1;
388+
id select_type table type possible_keys key key_len ref rows filtered Extra
389+
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using filesort
390+
Warnings:
391+
Note 1003 select "test"."t1"."c1" AS "c1","test"."t1"."c2" AS "c2","test"."t1"."c1" like concat_operator_oracle("test"."t1"."c2",'_') AS "c1 LIKE c2||'_'" from "test"."t1" order by "test"."t1"."ord"
392+
DROP VIEW v1;
393+
DROP TABLE t1;

mysql-test/suite/compat/oracle/t/func_concat.test

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,39 @@ SELECT -1||0^1 AS a FROM DUAL;
146146

147147
EXPLAIN EXTENDED SELECT -1^1||1 AS a FROM DUAL;
148148
EXPLAIN EXTENDED SELECT -1||0^1 AS a FROM DUAL;
149+
150+
151+
--echo #
152+
--echo # MDEV-17359 Concatenation operator || in like expression failed in sql_mode=ORACLE
153+
--echo #
154+
155+
SELECT 'abc' LIKE 'a'||'%';
156+
EXPLAIN EXTENDED SELECT 'abc' LIKE 'a'||'%';
157+
158+
SELECT 'x' FROM DUAL WHERE 11 LIKE 1||1;
159+
SELECT 'x' FROM DUAL WHERE 1||1 LIKE 11;
160+
SELECT 'x' FROM DUAL WHERE 1||1 LIKE 1||1;
161+
162+
CREATE TABLE t1 (c1 VARCHAR(10),c2 VARCHAR(10), ord INTEGER);
163+
INSERT INTO t1 VALUES ('a', 'ab' ,1);
164+
INSERT INTO t1 VALUES ('ab', 'ab', 2);
165+
INSERT INTO t1 VALUES ('abc', 'ab', 3);
166+
167+
SELECT c1 FROM t1 WHERE c1 LIKE '%'||'b' ORDER BY ord;
168+
EXPLAIN EXTENDED SELECT c1 FROM t1 WHERE c1 LIKE '%'||'b' ORDER BY ord;
169+
170+
SELECT c1 FROM t1 WHERE c1 LIKE c2||'%'||'c' ORDER BY ord;
171+
EXPLAIN EXTENDED SELECT c1 FROM t1 WHERE c1 LIKE c2||'%'||'c' ORDER BY ord;
172+
173+
SELECT 'x' FROM t1 WHERE c1||c2 LIKE 'aa%';
174+
EXPLAIN EXTENDED SELECT 'x' FROM t1 WHERE c1||c2 LIKE 'aa%';
175+
176+
SELECT 'x' FROM t1 WHERE c1||c2 LIKE c2||c1;
177+
EXPLAIN EXTENDED SELECT 'x' FROM t1 WHERE c1||c2 LIKE c2||c1;
178+
179+
CREATE VIEW v1 AS SELECT c1, c2, c1 LIKE c2||'_' FROM t1 ORDER BY ord;
180+
SELECT * FROM v1;
181+
EXPLAIN EXTENDED SELECT * FROM v1;
182+
183+
DROP VIEW v1;
184+
DROP TABLE t1;

sql/sql_yacc.yy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9735,14 +9735,14 @@ predicate:
97359735
if (unlikely($$ == NULL))
97369736
MYSQL_YYABORT;
97379737
}
9738-
| bit_expr LIKE mysql_concatenation_expr opt_escape
9738+
| bit_expr LIKE bit_expr opt_escape
97399739
{
97409740
$$= new (thd->mem_root) Item_func_like(thd, $1, $3, $4,
97419741
Lex->escape_used);
97429742
if (unlikely($$ == NULL))
97439743
MYSQL_YYABORT;
97449744
}
9745-
| bit_expr not LIKE mysql_concatenation_expr opt_escape
9745+
| bit_expr not LIKE bit_expr opt_escape
97469746
{
97479747
Item *item= new (thd->mem_root) Item_func_like(thd, $1, $4, $5,
97489748
Lex->escape_used);

sql/sql_yacc_ora.yy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9881,14 +9881,14 @@ predicate:
98819881
if (unlikely($$ == NULL))
98829882
MYSQL_YYABORT;
98839883
}
9884-
| bit_expr LIKE mysql_concatenation_expr opt_escape
9884+
| bit_expr LIKE bit_expr opt_escape
98859885
{
98869886
$$= new (thd->mem_root) Item_func_like(thd, $1, $3, $4,
98879887
Lex->escape_used);
98889888
if (unlikely($$ == NULL))
98899889
MYSQL_YYABORT;
98909890
}
9891-
| bit_expr not LIKE mysql_concatenation_expr opt_escape
9891+
| bit_expr not LIKE bit_expr opt_escape
98929892
{
98939893
Item *item= new (thd->mem_root) Item_func_like(thd, $1, $4, $5,
98949894
Lex->escape_used);

storage/innobase/include/univ.i

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,22 +420,19 @@ typedef ssize_t lint;
420420
# define INT64PF "%lld"
421421
# define UINT64scan "llu"
422422
# define UINT64PFx "%016llx"
423-
# define TIMETPF "%ld"
424423
#elif defined __APPLE__
425424
/* Apple prefers to call the 64-bit types 'long long'
426425
in both 32-bit and 64-bit environments. */
427426
# define UINT32PF "%" PRIu32
428427
# define INT64PF "%lld"
429428
# define UINT64scan "llu"
430429
# define UINT64PFx "%016llx"
431-
# define TIMETPF "%" PRIdFAST32
432430
#else
433431
/* Use the integer types and formatting strings defined in the C99 standard. */
434432
# define UINT32PF "%" PRIu32
435433
# define INT64PF "%" PRId64
436434
# define UINT64scan PRIu64
437435
# define UINT64PFx "%016" PRIx64
438-
# define TIMETPF "%" PRIdFAST32
439436
#endif
440437

441438
#ifdef UNIV_INNOCHECKSUM

storage/innobase/row/row0row.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,6 @@ row_build_index_entry_low(
255255

256256
ut_ad(dfield_is_null(dfield2) ||
257257
dfield_get_len(dfield2) == 0 || dfield2->data);
258-
ut_ad(dfield2->type.mtype != DATA_MISSING
259-
|| !index->is_committed());
260258
} else {
261259
dfield2 = dtuple_get_nth_field(row, col_no);
262260
ut_ad(dfield_get_type(dfield2)->mtype == DATA_MISSING

0 commit comments

Comments
 (0)