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

Commitc40e20a

Browse files
committed
Revert renaming of int44in/int44out.
This seemed like a good idea in commitbe42eb9, but it causes moretrouble than it's worth for cross-branch upgrade testing.Discussion:https://postgr.es/m/11927.1519756619@sss.pgh.pa.us
1 parent6614aaa commitc40e20a

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

‎src/test/regress/expected/create_type.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ CREATE TYPE widget (
1616
);
1717
CREATE TYPE city_budget (
1818
internallength = 16,
19-
input =city_budget_in,
20-
output =city_budget_out,
19+
input =int44in,
20+
output =int44out,
2121
element = int4,
2222
category = 'x', -- just to verify the system will take it
2323
preferred = true -- ditto

‎src/test/regress/input/create_function_1.source

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ CREATE FUNCTION widget_out(widget)
1212
AS '@libdir@/regress@DLSUFFIX@'
1313
LANGUAGE C STRICT IMMUTABLE;
1414

15-
CREATE FUNCTIONcity_budget_in(cstring)
15+
CREATE FUNCTIONint44in(cstring)
1616
RETURNS city_budget
1717
AS '@libdir@/regress@DLSUFFIX@'
1818
LANGUAGE C STRICT IMMUTABLE;
1919

20-
CREATE FUNCTIONcity_budget_out(city_budget)
20+
CREATE FUNCTIONint44out(city_budget)
2121
RETURNS cstring
2222
AS '@libdir@/regress@DLSUFFIX@'
2323
LANGUAGE C STRICT IMMUTABLE;

‎src/test/regress/output/create_function_1.source

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ CREATE FUNCTION widget_out(widget)
1212
AS '@libdir@/regress@DLSUFFIX@'
1313
LANGUAGE C STRICT IMMUTABLE;
1414
NOTICE: argument type widget is only a shell
15-
CREATE FUNCTIONcity_budget_in(cstring)
15+
CREATE FUNCTIONint44in(cstring)
1616
RETURNS city_budget
1717
AS '@libdir@/regress@DLSUFFIX@'
1818
LANGUAGE C STRICT IMMUTABLE;
1919
NOTICE: type "city_budget" is not yet defined
2020
DETAIL: Creating a shell type definition.
21-
CREATE FUNCTIONcity_budget_out(city_budget)
21+
CREATE FUNCTIONint44out(city_budget)
2222
RETURNS cstring
2323
AS '@libdir@/regress@DLSUFFIX@'
2424
LANGUAGE C STRICT IMMUTABLE;

‎src/test/regress/regress.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -442,19 +442,19 @@ set_ttdummy(PG_FUNCTION_ARGS)
442442

443443

444444
/*
445-
* Typecity_budget has no real-world use, but the regression tests use it.
446-
* It's a four-element vector of int4's.
445+
* Typeint44 has no real-world use, but the regression tests use it
446+
*(under the alias "city_budget").It's a four-element vector of int4's.
447447
*/
448448

449449
/*
450-
*city_budget_in- converts "num, num, ..." to internal form
450+
*int44in- converts "num, num, ..." to internal form
451451
*
452452
*Note: Fills any missing positions with zeroes.
453453
*/
454-
PG_FUNCTION_INFO_V1(city_budget_in);
454+
PG_FUNCTION_INFO_V1(int44in);
455455

456456
Datum
457-
city_budget_in(PG_FUNCTION_ARGS)
457+
int44in(PG_FUNCTION_ARGS)
458458
{
459459
char*input_string=PG_GETARG_CSTRING(0);
460460
int32*result= (int32*)palloc(4*sizeof(int32));
@@ -473,12 +473,12 @@ city_budget_in(PG_FUNCTION_ARGS)
473473
}
474474

475475
/*
476-
*city_budget_out- converts internal form to "num, num, ..."
476+
*int44out- converts internal form to "num, num, ..."
477477
*/
478-
PG_FUNCTION_INFO_V1(city_budget_out);
478+
PG_FUNCTION_INFO_V1(int44out);
479479

480480
Datum
481-
city_budget_out(PG_FUNCTION_ARGS)
481+
int44out(PG_FUNCTION_ARGS)
482482
{
483483
int32*an_array= (int32*)PG_GETARG_POINTER(0);
484484
char*result= (char*)palloc(16*4);

‎src/test/regress/sql/create_type.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ CREATE TYPE widget (
1818

1919
CREATETYPEcity_budget (
2020
internallength=16,
21-
input=city_budget_in,
22-
output=city_budget_out,
21+
input=int44in,
22+
output=int44out,
2323
element= int4,
2424
category='x',-- just to verify the system will take it
2525
preferred= true-- ditto

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp