Permalink
Browse files

Remove trailing whitespaces.

Change-Id: I4c63b363cc922521eb2e48e93d1db0a4e4c0f105
Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>
  • Loading branch information...
1 parent 77bef8e commit 7420b8e01eb1bef4ab8845da7827edb663a94cfa @PiotrSikora PiotrSikora committed Dec 27, 2011
View
@@ -15,7 +15,7 @@ Features that sooner or later will be added to `ngx_postgres`:
* Use `PQescapeStringConn()` instead of `PQescapeString()`, this will
require lazy-evaluation of the variables after we acquire connection,
- but before we send query to the database.
+ but before we send query to the database.
Notes: Don't break `$postgres_query`.
* Cancel long-running queries using `PQcancel()`.
@@ -214,7 +214,7 @@ ngx_conf_enum_t ngx_postgres_requirement_options[] = {
ngx_postgres_rewrite_enum_t ngx_postgres_rewrite_handlers[] = {
{ ngx_string("no_changes"), 0, ngx_postgres_rewrite_changes },
{ ngx_string("changes"), 1, ngx_postgres_rewrite_changes },
- { ngx_string("no_rows"), 2, ngx_postgres_rewrite_rows },
+ { ngx_string("no_rows"), 2, ngx_postgres_rewrite_rows },
{ ngx_string("rows"), 3, ngx_postgres_rewrite_rows },
{ ngx_null_string, 0, NULL }
};
@@ -304,7 +304,7 @@ ngx_postgres_create_loc_conf(ngx_conf_t *cf)
return NULL;
}
- /*
+ /*
* set by ngx_pcalloc():
*
* conf->upstream.* = 0 / NULL
@@ -339,7 +339,7 @@ ngx_postgres_upstream_get_result(ngx_http_request_t *r, ngx_connection_t *pgxc,
dd("returning NGX_HTTP_INTERNAL_SERVER_ERROR");
return NGX_HTTP_INTERNAL_SERVER_ERROR;
}
-
+
dd("result received successfully, cols:%d rows:%d",
PQnfields(res), PQntuples(res));
@@ -70,7 +70,7 @@ ngx_postgres_rewrite_changes(ngx_http_request_t *r,
dd("entering");
pgctx = ngx_http_get_module_ctx(r, ngx_postgres_module);
-
+
if ((pgrcf->key % 2 == 0) && (pgctx->var_affected == 0)) {
/* no_changes */
dd("returning");
@@ -211,7 +211,7 @@ ngx_postgres_upstream_init_peer(ngx_http_request_t *r,
pgdt->query = query->sv;
}
- /* set $postgres_query */
+ /* set $postgres_query */
pgctx->var_query = pgdt->query;
dd("returning NGX_OK");
@@ -471,7 +471,7 @@ ngx_postgres_upstream_get_peer(ngx_peer_connection_t *pc, void *data)
failed:
/* a bit hack-ish way to return error response (setup part) */
pc->connection = ngx_get_connection(0, pc->log);
-
+
dd("returning NGX_AGAIN (NGX_ERROR)");
return NGX_AGAIN;
#endif
View
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (c) 2010, FRiCKLE Piotr Sikora <info@frickle.com>
* Copyright (c) 2009-2010, Yichun Zhang <agentzh@gmail.com>
* Copyright (C) 2002-2010, Igor Sysoev

0 comments on commit 7420b8e

Please sign in to comment.