Commit 32fa3568 authored by osku's avatar osku

row_fetch_print: Handle SQL NULL values without crashing.

parent f1329684
......@@ -2036,8 +2036,13 @@ row_fetch_print(
dtype_print(type);
fprintf(stderr, "\n");
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment