mirror of
https://git.freebsd.org/ports.git
synced 2025-05-01 11:06:39 -04:00
This is an upstream module that allows Angie to communicate directly with PostgreSQL database. PR: Angie postgres dynamic module
18 lines
564 B
Text
18 lines
564 B
Text
--- ../ngx_postgres-1.0rc7/src/ngx_postgres_handler.c.orig
|
|
+++ ../ngx_postgres-1.0rc7/src/ngx_postgres_handler.c
|
|
@@ -52,6 +52,7 @@
|
|
|
|
dd("entering");
|
|
|
|
+#if defined(nginx_version) && (nginx_version < 13010)
|
|
if (r->subrequest_in_memory) {
|
|
/* TODO: add support for subrequest in memory by
|
|
* emitting output into u->buffer instead */
|
|
@@ -63,6 +64,7 @@
|
|
dd("returning NGX_HTTP_INTERNAL_SERVER_ERROR");
|
|
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
|
}
|
|
+#endif
|
|
|
|
pglcf = ngx_http_get_module_loc_conf(r, ngx_postgres_module);
|
|
|