projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bdca6c
)
Don't lose notices that don't come from a query.
author
Dave Page
<dpage@pgadmin.org>
Sat, 17 Sep 2005 22:58:51 +0000
(22:58 +0000)
committer
Dave Page
<dpage@pgadmin.org>
Sat, 17 Sep 2005 22:58:51 +0000
(22:58 +0000)
connection.c
patch
|
blob
|
blame
|
history
diff --git
a/connection.c
b/connection.c
index 38a4e289b8a565aa90bbb8111fdbca7d382a8b7b..b27af82071cad05ba87eeb1391266098ad23030f 100644
(file)
--- a/
connection.c
+++ b/
connection.c
@@
-2359,7
+2359,11
@@
CC_handle_notice(void *arg, const char *msg)
if (qres == NULL)
{
- // No query in progress, so just drop the notice
+ /* Log the notice to stderr and any logs 'cos */
+ /* there's not much else we can do with it. */
+ fprintf(stderr, "NOTICE from backend outside of a query: '%s'\n", msg);
+ mylog("~~~ NOTICE: '%s'\n", msg);
+ qlog("NOTICE from backend outside of a query: '%s'\n", msg);
return;
}