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( ...@@ -2036,8 +2036,13 @@ row_fetch_print(
dtype_print(type); dtype_print(type);
fprintf(stderr, "\n"); fprintf(stderr, "\n");
ut_print_buf(stderr, dfield_get_data(dfield), if (dfield_get_len(dfield) != UNIV_SQL_NULL) {
dfield_get_len(dfield)); ut_print_buf(stderr, dfield_get_data(dfield),
dfield_get_len(dfield));
} else {
fprintf(stderr, " <NULL>;");
}
fprintf(stderr, "\n"); fprintf(stderr, "\n");
exp = que_node_get_next(exp); 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