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

Commite0ddf66

Browse files
committed
Substitute python version for atc python test
1 parentd5ce481 commite0ddf66

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

‎configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17924,7 +17924,7 @@ fi
1792417924

1792517925

1792617926

17927-
ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17927+
ac_config_files="$ac_config_files GNUmakefile src/Makefile.global src/test/regress/sql/atx.sql src/test/regress/expected/atx.out"
1792817928

1792917929

1793017930
ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"

‎configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2297,7 +2297,7 @@ AC_SUBST(vpath_build)
22972297

22982298
AC_SUBST(PGPRO_VERSION)
22992299

2300-
AC_CONFIG_FILES([GNUmakefile src/Makefile.global])
2300+
AC_CONFIG_FILES([GNUmakefile src/Makefile.global src/test/regress/sql/atx.sql src/test/regress/expected/atx.out])
23012301

23022302
AC_CONFIG_LINKS([
23032303
src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c

‎src/test/regress/expected/atx.outrenamed to‎src/test/regress/expected/atx.out.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ select tid, table_name, action, old_data, new_data, query from atx_actions;
164164
(4 rows)
165165

166166
--- plpythonu ---
167-
create extension if not existsplpythonu;
167+
create extension if not existsplpython@python_majorversion@u;
168168
drop table atx_test;
169169
create table atx_test(a text, b int);
170170
create or replace function pythonomous() returns void as $$
@@ -177,7 +177,7 @@ create or replace function pythonomous() returns void as $$
177177
print("error: %s" % e.args)
178178

179179
plpy.execute("insert into atx_test values ('csd', 'csd')")
180-
$$ languageplpythonu;
180+
$$ languageplpython@python_majorversion@u;
181181
select pythonomous();
182182
ERROR: spiexceptions.InvalidTextRepresentation: invalid input syntax for integer: "csd"
183183
LINE 1: insert into atx_test values ('csd', 'csd')

‎src/test/regress/sql/atx.sqlrenamed to‎src/test/regress/sql/atx.sql.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ select tid, table_name, action, old_data, new_data, query from atx_actions;
142142

143143
--- plpythonu ---
144144

145-
create extension if not existsplpythonu;
145+
create extension if not existsplpython@python_majorversion@u;
146146

147147
drop table atx_test;
148148
create table atx_test(a text, b int);
@@ -157,7 +157,7 @@ create or replace function pythonomous() returns void as $$
157157
print("error: %s" % e.args)
158158

159159
plpy.execute("insert into atx_test values ('csd', 'csd')")
160-
$$ languageplpythonu;
160+
$$ languageplpython@python_majorversion@u;
161161

162162
select pythonomous();
163163
select * from atx_test; -- you should see (bsd, 456)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp