Commit aa508d4
Sergey Glukhov
Bug#11766126 59166: ANOTHER DATETIME VALGRIND UNINITIALIZED WARNING
Valgrind warning happens because null values check happens too late
in Item_func_month::val_str(after result string calculation).The fix
is to check null value before result string calculation.
--BZR--
revision-id: [email protected]
property-branch-nick: mysql-5.1
property-file-info: ld7:file_id69:sp1f-func_time.result-20001228015633-voo54ouzgwctcbmk22zwazoev5os5o4x7:message10:test case
property-file-info: 4:path29:mysql-test/r/func_time.resulted7:file_id67:sp1f-func_time.test-20001228015636-a35kjdfabkx5uhymtqrz4c366obz4i7h7:message10:test case
property-file-info: 4:path27:mysql-test/t/func_time.tested7:file_id68:sp1f-item_timefunc.h-19700101030959-o34ypz6ggolzqmhgsjnqh6inkvgugi467:message50:check null value before result string calculation.4:path19:sql/item_timefunc.hee
testament3-sha1: afaa9ad345fdd56c5ecbcea857bde790dcacad5d1 parent 17e7472 commit aa508d4
File tree
3 files changed
+17
-2
lines changed- mysql-test
- r
- t
- sql
3 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1393 | 1393 | | |
1394 | 1394 | | |
1395 | 1395 | | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
1396 | 1402 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
904 | 910 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
0 commit comments