restore listeners and statements on connection reset
[m6w6/ext-pq] / src / php_pqconn.h
index 03ad9c88d5265133a66ed96f36b54e3d53e35b60..195da5b45a881352b9c8d3c6ba2b4558902f2ab7 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <ext/raphf/php_raphf.h>
 #include "php_pq_callback.h"
+#include "php_pq_object.h"
 #include "php_pq_params.h"
 
 typedef struct php_pqconn {
@@ -26,6 +27,7 @@ typedef struct php_pqconn {
        int (*poller)(PGconn *);
        php_resource_factory_t factory;
        HashTable listeners;
+       HashTable statements;
        HashTable converters;
        HashTable eventhandlers;
        php_pq_callback_t onevent;