forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5bffd42

Michael Meskes
ECPG: Make the preprocessor emit ';' if the variable type for a list of
variables is varchar. This fixes this test case:int main(void){ exec sql begin declare section; varchar a[50], b[50]; exec sql end declare section; return 0;}Since varchars are internally turned into custom structs andthe type name is emitted for these variable declarations,the preprocessed code previously had:struct varchar_1 { ... } a _,_ struct varchar_2 { ... } b ;The comma in the generated C file was a syntax error.There are no regression test changes since it's not exercised.Patch by Boszormenyi Zoltan <zb@cybertec.at>1 parent20ada26 commit5bffd42
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
832 | 832 |
| |
833 | 833 |
| |
834 | 834 |
| |
835 |
| - | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
836 | 841 |
| |
837 | 842 |
| |
838 | 843 |
| |
|
0 commit comments
Comments
(0)