diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-05-22 12:55:34 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-05-22 12:55:34 -0400 |
commit | be76af171cdb3e7465c4ef234af403f97ad79b7b (patch) | |
tree | 1fa62d2b7a6680a4237a1548f7002fa0b234b143 /src/interfaces/ecpg/ecpglib/cursor.c | |
parent | 66a4bad83aaa6613a45a00a488c04427f9969fb4 (diff) | |
download | postgresql-be76af171cdb3e7465c4ef234af403f97ad79b7b.tar.gz postgresql-be76af171cdb3e7465c4ef234af403f97ad79b7b.zip |
Initial pgindent run for v12.
This is still using the 2.0 version of pg_bsd_indent.
I thought it would be good to commit this separately,
so as to document the differences between 2.0 and 2.1 behavior.
Discussion: https://postgr.es/m/16296.1558103386@sss.pgh.pa.us
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/cursor.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/cursor.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/interfaces/ecpg/ecpglib/cursor.c b/src/interfaces/ecpg/ecpglib/cursor.c index 133d62321bf..c364a3c97d1 100644 --- a/src/interfaces/ecpg/ecpglib/cursor.c +++ b/src/interfaces/ecpg/ecpglib/cursor.c @@ -25,14 +25,14 @@ static bool find_cursor(const char *, const struct connection *); * others --- keep same as the parameters in ECPGdo() function */ bool -ECPGopen(const char *cursor_name,const char *prepared_name, - const int lineno, const int compat,const int force_indicator, - const char *connection_name, const bool questionmarks, - const int st, const char *query,...) +ECPGopen(const char *cursor_name, const char *prepared_name, + const int lineno, const int compat, const int force_indicator, + const char *connection_name, const bool questionmarks, + const int st, const char *query,...) { va_list args; bool status; - const char *real_connection_name = NULL; + const char *real_connection_name = NULL; if (!query) { @@ -53,8 +53,8 @@ ECPGopen(const char *cursor_name,const char *prepared_name, else { /* - * If can't get the connection name by declared name then using connection name - * coming from the parameter connection_name + * If can't get the connection name by declared name then using + * connection name coming from the parameter connection_name */ real_connection_name = connection_name; } @@ -81,13 +81,13 @@ ECPGopen(const char *cursor_name,const char *prepared_name, */ bool ECPGfetch(const char *cursor_name, - const int lineno, const int compat,const int force_indicator, - const char *connection_name, const bool questionmarks, - const int st, const char *query,...) + const int lineno, const int compat, const int force_indicator, + const char *connection_name, const bool questionmarks, + const int st, const char *query,...) { va_list args; bool status; - const char *real_connection_name = NULL; + const char *real_connection_name = NULL; if (!query) { @@ -99,8 +99,8 @@ ECPGfetch(const char *cursor_name, if (real_connection_name == NULL) { /* - * If can't get the connection name by cursor name then using connection name - * coming from the parameter connection_name + * If can't get the connection name by cursor name then using + * connection name coming from the parameter connection_name */ real_connection_name = connection_name; } @@ -123,13 +123,13 @@ ECPGfetch(const char *cursor_name, */ bool ECPGclose(const char *cursor_name, - const int lineno, const int compat,const int force_indicator, - const char *connection_name, const bool questionmarks, - const int st, const char *query,...) + const int lineno, const int compat, const int force_indicator, + const char *connection_name, const bool questionmarks, + const int st, const char *query,...) { va_list args; bool status; - const char *real_connection_name = NULL; + const char *real_connection_name = NULL; struct connection *con = NULL; if (!query) @@ -142,8 +142,8 @@ ECPGclose(const char *cursor_name, if (real_connection_name == NULL) { /* - * If can't get the connection name by cursor name then using connection name - * coming from the parameter connection_name + * If can't get the connection name by cursor name then using + * connection name coming from the parameter connection_name */ real_connection_name = connection_name; } @@ -192,12 +192,12 @@ add_cursor(const int lineno, const char *cursor_name, const char *connection_nam if (!con) { ecpg_raise(lineno, ECPG_NO_CONN, ECPG_SQLSTATE_CONNECTION_DOES_NOT_EXIST, - connection_name ? connection_name : ecpg_gettext("NULL")); + connection_name ? connection_name : ecpg_gettext("NULL")); return; } /* allocate a node to store the new cursor */ - new = (struct cursor_statement *)ecpg_alloc(sizeof(struct cursor_statement), lineno); + new = (struct cursor_statement *) ecpg_alloc(sizeof(struct cursor_statement), lineno); if (new) { new->name = ecpg_strdup(cursor_name, lineno); |