1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-25 12:03:53 +03:00

Test for and handle NULL arguments to mylog() print statements.

Include definition for _IN_ADDR_T if INADDR_NONE is not defined.
This commit is contained in:
Thomas G. Lockhart
1998-11-04 16:24:32 +00:00
parent f47bd801e3
commit 30f35ef9c4
4 changed files with 11 additions and 3 deletions

View File

@@ -855,7 +855,7 @@ mylog("SQLFetch: stmt = %u, stmt->result= %u\n", stmt, stmt->result);
value = QR_get_value_backend_row(res, stmt->currTuple, lf);
}
mylog("value = '%s'\n", value);
mylog("value = '%s'\n", (value==NULL)?"<NULL>":value);
retval = copy_and_convert_field_bindinfo(stmt, type, value, lf);