Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1ef7c5c

Browse files
author
Michael Meskes
committed
Added WHENEVER NOT_FOUND to SELECT/INSERT/UPDATE/DELETE.
1 parent a001097 commit 1ef7c5c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/interfaces/ecpg/preproc/preproc.y

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.269 2004/01/04 14:49:06 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.270 2004/01/21 14:09:34 meskes Exp $ */
22

33
/* Copyright comment */
44
%{
@@ -643,7 +643,7 @@ stmt: AlterDatabaseSetStmt { output_statement($1, 0, connection); }
643643
/*| DeallocateStmt { output_statement($1, 0, connection); }*/
644644
| DeclareCursorStmt { output_simple_statement($1); }
645645
| DefineStmt { output_statement($1, 0, connection); }
646-
| DeleteStmt { output_statement($1, 0, connection); }
646+
| DeleteStmt { output_statement($1, 1, connection); }
647647
| DropAssertStmt { output_statement($1, 0, connection); }
648648
| DropCastStmt { output_statement($1, 0, connection); }
649649
| DropGroupStmt { output_statement($1, 0, connection); }
@@ -659,7 +659,7 @@ stmt: AlterDatabaseSetStmt { output_statement($1, 0, connection); }
659659
| FetchStmt { output_statement($1, 1, connection); }
660660
| GrantStmt { output_statement($1, 0, connection); }
661661
| IndexStmt { output_statement($1, 0, connection); }
662-
| InsertStmt { output_statement($1, 0, connection); }
662+
| InsertStmt { output_statement($1, 1, connection); }
663663
| ListenStmt { output_statement($1, 0, connection); }
664664
| LoadStmt { output_statement($1, 0, connection); }
665665
| LockStmt { output_statement($1, 0, connection); }
@@ -672,7 +672,7 @@ stmt: AlterDatabaseSetStmt { output_statement($1, 0, connection); }
672672
| RenameStmt { output_statement($1, 0, connection); }
673673
| RevokeStmt { output_statement($1, 0, connection); }
674674
| RuleStmt { output_statement($1, 0, connection); }
675-
| SelectStmt { output_statement($1, 0, connection); }
675+
| SelectStmt { output_statement($1, 1, connection); }
676676
| TransactionStmt
677677
{
678678
fprintf(yyout, "{ ECPGtrans(__LINE__, %s, \"%s\");", connection ? connection : "NULL", $1);
@@ -681,7 +681,7 @@ stmt: AlterDatabaseSetStmt { output_statement($1, 0, connection); }
681681
}
682682
| TruncateStmt { output_statement($1, 0, connection); }
683683
| UnlistenStmt { output_statement($1, 0, connection); }
684-
| UpdateStmt { output_statement($1, 0, connection); }
684+
| UpdateStmt { output_statement($1, 1, connection); }
685685
| VacuumStmt { output_statement($1, 0, connection); }
686686
| VariableSetStmt { output_statement($1, 0, connection); }
687687
| VariableShowStmt { output_statement($1, 0, connection); }

0 commit comments

Comments
 (0)