|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.279 2002/08/04 23:56:01 tgl Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.280 2002/08/06 05:24:04 momjian Exp $ |
12 | 12 | *
|
13 | 13 | * NOTES
|
14 | 14 | * this is the "main" module of the postgres backend and
|
@@ -648,38 +648,13 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
|
648 | 648 | {
|
649 | 649 | TransactionStmt *stmt = (TransactionStmt *) parsetree;
|
650 | 650 |
|
651 |
| - switch (stmt->command) |
652 |
| - { |
653 |
| - case COMMIT: |
654 |
| - case ROLLBACK: |
655 |
| - allowit = true; |
656 |
| - break; |
657 |
| - default: |
658 |
| - break; |
659 |
| - } |
| 651 | + if (stmt->command == COMMIT || stmt->command == ROLLBACK) |
| 652 | + allowit = true; |
660 | 653 | }
|
661 | 654 |
|
662 | 655 | if (!allowit)
|
663 |
| - { |
664 |
| - elog(WARNING, "current transaction is aborted, " |
| 656 | + elog(ERROR, "current transaction is aborted, " |
665 | 657 | "queries ignored until end of transaction block");
|
666 |
| - |
667 |
| - /* |
668 |
| - * We need to emit a command-complete report to the client, |
669 |
| - * even though we didn't process the query. |
670 |
| - * - cim 6/1/90 |
671 |
| - */ |
672 |
| - commandTag = "*ABORT STATE*"; |
673 |
| - |
674 |
| - EndCommand(commandTag, dest); |
675 |
| - |
676 |
| - /* |
677 |
| - * We continue in the loop, on the off chance that there |
678 |
| - * is a COMMIT or ROLLBACK utility command later in the |
679 |
| - * query string. |
680 |
| - */ |
681 |
| - continue; |
682 |
| - } |
683 | 658 | }
|
684 | 659 |
|
685 | 660 | /* Make sure we are in a transaction command */
|
@@ -1701,7 +1676,7 @@ PostgresMain(int argc, char *argv[], const char *username)
|
1701 | 1676 | if (!IsUnderPostmaster)
|
1702 | 1677 | {
|
1703 | 1678 | puts("\nPOSTGRES backend interactive interface ");
|
1704 |
| - puts("$Revision: 1.279 $ $Date: 2002/08/04 23:56:01 $\n"); |
| 1679 | + puts("$Revision: 1.280 $ $Date: 2002/08/06 05:24:04 $\n"); |
1705 | 1680 | }
|
1706 | 1681 |
|
1707 | 1682 | /*
|
|
0 commit comments