fix compiler error

This commit is contained in:
chenyanfei
2020-08-06 14:36:45 +08:00
parent b093b4d858
commit f03dec6c3e
5 changed files with 23 additions and 23 deletions

View File

@ -2635,7 +2635,7 @@ stmt_commit : K_COMMIT ';'
newp->cmd_type = PLPGSQL_STMT_COMMIT;
newp->lineno = plpgsql_location_to_lineno(@1);
$$ = (PLpgSQL_stmt_commit *)newp;
$$ = (PLpgSQL_stmt *)newp;
}
;
@ -2648,7 +2648,7 @@ stmt_rollback : K_ROLLBACK ';'
newp->cmd_type = PLPGSQL_STMT_ROLLBACK;
newp->lineno = plpgsql_location_to_lineno(@1);
$$ = (PLpgSQL_stmt_rollback *)newp;
$$ = (PLpgSQL_stmt *)newp;
}
;

View File

@ -413,7 +413,7 @@ typedef struct PLpgSQL_stmt_commit {
typedef struct PLpgSQL_stmt_rollback {
int cmd_type;
int lineno;
} PLpgSQL_stmt_commit;
} PLpgSQL_stmt_rollback;
typedef struct { /* Get Diagnostics item */
int kind; /* id for diagnostic value desired */

View File

@ -373,7 +373,7 @@ END;
-- Test COMMIT/ROLLBACK
-------------------------------------------------------
CREATE TABLE t_transaction(id INTEGER);
CREATE OR REPLACE PROCDURE proc_callas_transaction
CREATE OR REPLACE PROCEDURE proc_callas_transaction
AS
BEGIN
INSERT INTO t_transaction VALUES(1);

View File

@ -270,7 +270,7 @@ END;
-- Test COMMIT/ROLLBACK
-------------------------------------------------------
CREATE TABLE t_transaction(id INTEGER);
CREATE OR REPLACE PROCDURE proc_callas_transaction
CREATE OR REPLACE PROCEDURE proc_callas_transaction
AS
BEGIN
INSERT INTO t_transaction VALUES(1);