[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pq f896dabb85 22/63: Install notice receiver while fetc
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pq f896dabb85 22/63: Install notice receiver while fetching results as well. |
Date: |
Mon, 14 Feb 2022 23:24:21 -0500 (EST) |
branch: externals/pq
commit f896dabb85f8d0854d2c38df85c4fc762e9781f4
Author: Andreas Seltenreich <seltenreich@gmx.de>
Commit: Andreas Seltenreich <seltenreich@gmx.de>
Install notice receiver while fetching results as well.
---
pq.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pq.c b/pq.c
index 52c6350be3..17f67a9e3b 100644
--- a/pq.c
+++ b/pq.c
@@ -160,6 +160,9 @@ Fpq_query (emacs_env *env, ptrdiff_t nargs, emacs_value
args[], void *data)
if (!result_ok(env, res))
return Qnil;
+ old_notice_rx =
+ PQsetNoticeReceiver(conn, pq_notice_rx, env);
+
int ntuples = PQntuples(res);
int nfields = PQnfields(res);
@@ -185,6 +188,8 @@ Fpq_query (emacs_env *env, ptrdiff_t nargs, emacs_value
args[], void *data)
emacs_value args[2] = {tuple, list};
list = env->funcall (env, Qcons, 2, args);
}
+
+ PQsetNoticeReceiver(conn, old_notice_rx, NULL);
PQclear(res);
return list;
}
- [elpa] externals/pq 09e320f63f 29/63: Initial travis ci configuration, (continued)
- [elpa] externals/pq 09e320f63f 29/63: Initial travis ci configuration, ELPA Syncer, 2022/02/14
- [elpa] externals/pq 76f81f5ca5 05/63: Replace low-level functions with a higher level one., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 1048d41b99 28/63: Use pg_config to detect postgresql include directory, ELPA Syncer, 2022/02/14
- [elpa] externals/pq fb79f059fb 19/63: Flush debug fprintf()s., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 2c03e4aba4 42/63: Make garbage-collection test more robust., ELPA Syncer, 2022/02/14
- [elpa] externals/pq dc688341b0 35/63: test: Check more raised errors in different parts of the code., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 33e626d5b8 11/63: README: It's no longer quick and dirty., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 45a732a4c2 31/63: Add test for signal error, ELPA Syncer, 2022/02/14
- [elpa] externals/pq 6ab076af29 26/63: Fix memory leak., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 191b842a56 21/63: Add missing static declarations., ELPA Syncer, 2022/02/14
- [elpa] externals/pq f896dabb85 22/63: Install notice receiver while fetching results as well.,
ELPA Syncer <=
- [elpa] externals/pq 8964028f11 25/63: Coerce non-string query parameters into strings., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 83157bd41e 32/63: Cleanup session initialization., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 3026279578 48/63: Use pg_config with --includedir instead of --pkgincludedir., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 56fde7b255 53/63: Improve docstrings., ELPA Syncer, 2022/02/14
- [elpa] externals/pq c9df58b1ac 49/63: Always look up t and nil instead of caching them., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 04c91e8374 63/63: add pq.el and move pq.c -> pq-core.c, ELPA Syncer, 2022/02/14
- [elpa] externals/pq 8cc484c68b 62/63: README: Fix typos., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 272b18abec 43/63: Makefile: Add dependency to check target., ELPA Syncer, 2022/02/14
- [elpa] externals/pq bec131bfae 61/63: README: Elaborate on usage., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 8044537122 23/63: Add testcase that provokes a NOTIFY., ELPA Syncer, 2022/02/14