Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit49cc503

Browse files
committed
Revert changes to process pg_proc.h entries without OIDs. We're not supposed
to have such entries, and want to be notified when we do...Leave the plain bugfix in genbki.
1 parentf8e9fb2 commit49cc503

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

‎src/tools/msvc/Solution.pm

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ sub GenerateFiles {
145145
print H"/* fmgroids.h generated for Visual C++ */\n#ifndef FMGROIDS_H\n#define FMGROIDS_H\n\n";
146146
open(T,">src\\backend\\utils\\fmgrtab.c") || confess"Could not open fmgrtab.c";
147147
print T"/* fmgrtab.c generated for Visual C++ */\n#include\"postgres.h\"\n#include\"utils/fmgrtab.h\"\n\n";
148-
foreachmy$s (sort {intval($a->{oid})<=>intval($b->{oid})}@fmgr) {
148+
foreachmy$s (sort {$a->{oid}<=>$b->{oid}}@fmgr) {
149149
nextif$seenit{$s->{prosrc}};
150150
$seenit{$s->{prosrc}} = 1;
151151
print H"#define F_" .uc$s->{prosrc} ."$s->{oid}\n";
@@ -157,9 +157,8 @@ sub GenerateFiles {
157157
my%bmap;
158158
$bmap{'t'} ='true';
159159
$bmap{'f'} ='false';
160-
foreachmy$s (sort {intval($a->{oid})<=> intval($b->{oid})}@fmgr) {
161-
my$o = intval($s->{oid});
162-
print T" {$o,\"$s->{prosrc}\",$s->{nargs},$bmap{$s->{strict}},$bmap{$s->{retset}},$s->{prosrc} },\n";
160+
foreachmy$s (sort {$a->{oid}<=>$b->{oid}}@fmgr) {
161+
print T" {$s->{oid},\"$s->{prosrc}\",$s->{nargs},$bmap{$s->{strict}},$bmap{$s->{retset}},$s->{prosrc} },\n";
163162
}
164163

165164

@@ -232,14 +231,6 @@ EOF
232231
}
233232
}
234233

235-
subintval {
236-
my$v =shift;
237-
if ($v =~/^\d+$/) {
238-
return$v;
239-
}
240-
return 0;
241-
}
242-
243234
subAddProject {
244235
my ($self,$name,$type,$folder,$initialdir) =@_;
245236

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp