fix compiler error
This commit is contained in:
@ -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;
|
||||
}
|
||||
;
|
||||
|
||||
|
@ -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 */
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user