|
1 | | -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.280 2004/05/0700:24:59 tgl Exp $*/ |
| 1 | +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.281 2004/05/0713:42:49 meskes Exp $*/ |
2 | 2 |
|
3 | 3 | /* Copyright comment*/ |
4 | 4 | %{ |
@@ -4574,8 +4574,7 @@ type_declaration: S_TYPEDEF |
4574 | 4574 | mmerror(PARSE_ERROR, ET_ERROR, errortext); |
4575 | 4575 | } |
4576 | 4576 | } |
4577 | | - |
4578 | | -adjust_array($3.type_enum, &dimension, &length, $3.type_dimension, $3.type_index, *$4?1:0); |
| 4577 | +adjust_array($3.type_enum, &dimension, &length, $3.type_dimension, $3.type_index, *$4?1:0,true); |
4579 | 4578 |
|
4580 | 4579 | this = (structtypedefs *) mm_alloc(sizeof(structtypedefs)); |
4581 | 4580 |
|
@@ -5021,7 +5020,7 @@ variable: opt_pointer ECPGColLabel opt_array_bounds opt_initializer |
5021 | 5020 | char *length =$3.index2;/* length of string*/ |
5022 | 5021 | char dim[14L]; |
5023 | 5022 |
|
5024 | | -adjust_array(actual_type[struct_level].type_enum, &dimension, &length, actual_type[struct_level].type_dimension, actual_type[struct_level].type_index, strlen($1)); |
| 5023 | +adjust_array(actual_type[struct_level].type_enum, &dimension, &length, actual_type[struct_level].type_dimension, actual_type[struct_level].type_index, strlen($1), false); |
5025 | 5024 |
|
5026 | 5025 | switch (actual_type[struct_level].type_enum) |
5027 | 5026 | { |
@@ -5411,7 +5410,7 @@ ECPGTypedef: TYPE_P |
5411 | 5410 | } |
5412 | 5411 | } |
5413 | 5412 |
|
5414 | | -adjust_array($5.type_enum, &dimension, &length, $5.type_dimension, $5.type_index, *$7?1:0); |
| 5413 | +adjust_array($5.type_enum, &dimension, &length, $5.type_dimension, $5.type_index, *$7?1:0,false); |
5415 | 5414 |
|
5416 | 5415 | this = (structtypedefs *) mm_alloc(sizeof(structtypedefs)); |
5417 | 5416 |
|
@@ -5469,7 +5468,7 @@ ECPGVar: SQL_VAR |
5469 | 5468 | mmerror(PARSE_ERROR, ET_ERROR,"Initializer not allowed in EXEC SQL VAR command"); |
5470 | 5469 | else |
5471 | 5470 | { |
5472 | | -adjust_array($5.type_enum, &dimension, &length, $5.type_dimension, $5.type_index, *$7?1:0); |
| 5471 | +adjust_array($5.type_enum, &dimension, &length, $5.type_dimension, $5.type_index, *$7?1:0,false); |
5473 | 5472 |
|
5474 | 5473 | switch ($5.type_enum) |
5475 | 5474 | { |
|