diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-11-29 23:42:03 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-11-29 23:42:03 +0000 |
commit | 63d7df4003beddf12a88938a9c34f7680103d683 (patch) | |
tree | 57dc59e7cef9a175d88bea977bd02ad0f512b1af /src/backend/access/gist/gist.c | |
parent | 1c5aec60bb72ec932d68c71d91147e5516796196 (diff) | |
download | postgresql-63d7df4003beddf12a88938a9c34f7680103d683.tar.gz postgresql-63d7df4003beddf12a88938a9c34f7680103d683.zip |
Small patch which fixes the ODBC driver so it doesn't segfault if:
You have CommLog and Debug enabled
You encounter in error in any operation (SQLConnect/SQLExec).
Previously, the extra logging didn't check for NULL pointers
when trying to print some of the strings- the socket error
message could frequently be NULL by design (if there was no socket
error)
and Solaris does not handle NULLS passed to things like printf
("%s\n",string);
gracefully.
This basically duplicates the functionality found in Linux where passing
a null pointer
to printf prints "(NULL)". No very elegant, but the logging is for debug
only anyway.
Dirk Niggemann
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions