]> granicus.if.org Git - postgresql/commitdiff
Remove spurious semicolons.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 31 Mar 2015 12:12:27 +0000 (15:12 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 31 Mar 2015 12:12:27 +0000 (15:12 +0300)
Petr Jelinek

contrib/postgres_fdw/deparse.c
src/backend/parser/gram.y
src/backend/replication/repl_gram.y
src/backend/utils/adt/json.c
src/backend/utils/adt/jsonb.c
src/backend/utils/adt/jsonfuncs.c
src/backend/utils/adt/oracle_compat.c

index 59cb053e4f4c5a02167e14ea71eee43867c02bdb..94fab18c42504d0a1900d9a0c412eccb52e800b9 100644 (file)
@@ -317,7 +317,7 @@ foreign_expr_walker(Node *node,
                        break;
                case T_ArrayRef:
                        {
-                               ArrayRef   *ar = (ArrayRef *) node;;
+                               ArrayRef   *ar = (ArrayRef *) node;
 
                                /* Assignment should not be in restrictions. */
                                if (ar->refassgnexpr != NULL)
index 3aa9e42b5ea49f8ac90ac52fe49bfef8b16888a9..88ec83c7c3884a4a3885d2c1a2125bb00ed35d2a 100644 (file)
@@ -14308,7 +14308,7 @@ makeRangeVarFromAnyName(List *names, int position, core_yyscan_t yyscanner)
                        r->relname = strVal(lsecond(names));
                        break;
                case 3:
-                       r->catalogname = strVal(linitial(names));;
+                       r->catalogname = strVal(linitial(names));
                        r->schemaname = strVal(lsecond(names));
                        r->relname = strVal(lthird(names));
                        break;
index 2a41eb148fd0273c202fb18a492d59ecf9d83edd..7d6d154f9c24ff34094ab3eff289dd2c1a639a3a 100644 (file)
@@ -226,7 +226,7 @@ start_logical_replication:
                                {
                                        StartReplicationCmd *cmd;
                                        cmd = makeNode(StartReplicationCmd);
-                                       cmd->kind = REPLICATION_KIND_LOGICAL;;
+                                       cmd->kind = REPLICATION_KIND_LOGICAL;
                                        cmd->slotname = $3;
                                        cmd->startpoint = $5;
                                        cmd->options = $6;
index d0d7206ae9307aaaa7bb6a474fbc5b22ca14c871..f08e288c21d29e29b37596a4336e082e496758af 100644 (file)
@@ -165,7 +165,7 @@ static inline void
 lex_expect(JsonParseContext ctx, JsonLexContext *lex, JsonTokenType token)
 {
        if (!lex_accept(lex, token, NULL))
-               report_parse_error(ctx, lex);;
+               report_parse_error(ctx, lex);
 }
 
 /* chars to consider as part of an alphanumeric token */
index 5833401eb19ccd8c813f54129717a99e851ed862..7e2c359b2197171b3811f1061881ea33309bf5d4 100644 (file)
@@ -1592,7 +1592,7 @@ jsonb_agg_transfn(PG_FUNCTION_ARGS)
                                if (v.type == jbvString)
                                {
                                        /* copy string values in the aggregate context */
-                                       char       *buf = palloc(v.val.string.len + 1);;
+                                       char       *buf = palloc(v.val.string.len + 1);
                                        snprintf(buf, v.val.string.len + 1, "%s", v.val.string.val);
                                        v.val.string.val = buf;
                                }
@@ -1753,7 +1753,7 @@ jsonb_object_agg_transfn(PG_FUNCTION_ARGS)
                                if (v.type == jbvString)
                                {
                                        /* copy string values in the aggregate context */
-                                       char       *buf = palloc(v.val.string.len + 1);;
+                                       char       *buf = palloc(v.val.string.len + 1);
                                        snprintf(buf, v.val.string.len + 1, "%s", v.val.string.val);
                                        v.val.string.val = buf;
                                }
@@ -1811,7 +1811,7 @@ jsonb_object_agg_transfn(PG_FUNCTION_ARGS)
                                if (v.type == jbvString)
                                {
                                        /* copy string values in the aggregate context */
-                                       char       *buf = palloc(v.val.string.len + 1);;
+                                       char       *buf = palloc(v.val.string.len + 1);
                                        snprintf(buf, v.val.string.len + 1, "%s", v.val.string.val);
                                        v.val.string.val = buf;
                                }
index a8cdeaa393c23d68c33e9b93e1bebdadb7f10ad2..274f64c95f81c1d320f372aa62d6d0acc776428b 100644 (file)
@@ -2675,7 +2675,7 @@ populate_recordset_worker(FunctionCallInfo fcinfo, const char *funcname,
 
        /* make these in a sufficiently long-lived memory context */
        old_cxt = MemoryContextSwitchTo(rsi->econtext->ecxt_per_query_memory);
-       state->ret_tdesc = CreateTupleDescCopy(tupdesc);;
+       state->ret_tdesc = CreateTupleDescCopy(tupdesc);
        BlessTupleDesc(state->ret_tdesc);
        state->tuple_store = tuplestore_begin_heap(rsi->allowedModes &
                                                                                           SFRM_Materialize_Random,
index 723be9ac0c14dcc320a795de68959bd69f83196d..8e896ebf16b4381797a8cf71a34503815ecd3065 100644 (file)
@@ -959,7 +959,7 @@ chr                 (PG_FUNCTION_ARGS)
                if (bytes == 2)
                {
                        wch[0] = 0xC0 | ((cvalue >> 6) & 0x1F);
-                       wch[1] = 0x80 | (cvalue & 0x3F);;
+                       wch[1] = 0x80 | (cvalue & 0x3F);
                }
                else if (bytes == 3)
                {