mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
row_fetch_print: Handle SQL NULL values without crashing.
This commit is contained in:
parent
f1329684db
commit
32fa3568a3
1 changed files with 7 additions and 2 deletions
|
@ -2036,8 +2036,13 @@ row_fetch_print(
|
|||
dtype_print(type);
|
||||
fprintf(stderr, "\n");
|
||||
|
||||
ut_print_buf(stderr, dfield_get_data(dfield),
|
||||
dfield_get_len(dfield));
|
||||
if (dfield_get_len(dfield) != UNIV_SQL_NULL) {
|
||||
ut_print_buf(stderr, dfield_get_data(dfield),
|
||||
dfield_get_len(dfield));
|
||||
} else {
|
||||
fprintf(stderr, " <NULL>;");
|
||||
}
|
||||
|
||||
fprintf(stderr, "\n");
|
||||
|
||||
exp = que_node_get_next(exp);
|
||||
|
|
Loading…
Add table
Reference in a new issue