@@ -56,7 +56,7 @@ Node *replication_parse_result;
56
56
%union {
57
57
char *str;
58
58
bool boolval;
59
- int32 intval ;
59
+ uint32 uintval ;
60
60
61
61
XLogRecPtr recptr;
62
62
Node *node;
@@ -66,7 +66,7 @@ Node *replication_parse_result;
66
66
67
67
/* Non-keyword tokens */
68
68
%token <str> SCONST
69
- %token <intval> ICONST
69
+ %token <uintval> UCONST
70
70
%token <recptr> RECPTR
71
71
72
72
/* Keyword tokens. */
@@ -85,7 +85,7 @@ Node *replication_parse_result;
85
85
%type <node> base_backup start_replication identify_system timeline_history
86
86
%type <list> base_backup_opt_list
87
87
%type <defelt> base_backup_opt
88
- %type <intval > opt_timeline
88
+ %type <uintval > opt_timeline
89
89
%%
90
90
91
91
firstcmd : command opt_semicolon
@@ -175,12 +175,12 @@ start_replication:
175
175
;
176
176
177
177
opt_timeline :
178
- K_TIMELINE ICONST
178
+ K_TIMELINE UCONST
179
179
{
180
180
if ($2 <= 0 )
181
181
ereport (ERROR,
182
182
(errcode(ERRCODE_SYNTAX_ERROR),
183
- (errmsg(" invalid timeline %d " , $2 ))));
183
+ (errmsg(" invalid timeline %u " , $2 ))));
184
184
$$ = $2 ;
185
185
}
186
186
| /* nothing */ { $$ = 0 ; }
@@ -190,14 +190,14 @@ opt_timeline:
190
190
* TIMELINE_HISTORY %d
191
191
*/
192
192
timeline_history :
193
- K_TIMELINE_HISTORY ICONST
193
+ K_TIMELINE_HISTORY UCONST
194
194
{
195
195
TimeLineHistoryCmd *cmd;
196
196
197
197
if ($2 <= 0 )
198
198
ereport (ERROR,
199
199
(errcode(ERRCODE_SYNTAX_ERROR),
200
- (errmsg(" invalid timeline %d " , $2 ))));
200
+ (errmsg(" invalid timeline %u " , $2 ))));
201
201
202
202
cmd = makeNode(TimeLineHistoryCmd);
203
203
cmd->timeline = $2 ;
0 commit comments