Skip to content

Commit e0ddf66

Browse files
committed
Substitute python version for atc python test
1 parent d5ce481 commit e0ddf66

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.out renamed 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 exists plpythonu;
167+
create extension if not exists plpython@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-
$$ language plpythonu;
180+
$$ language plpython@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.sql renamed 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 exists plpythonu;
145+
create extension if not exists plpython@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-
$$ language plpythonu;
160+
$$ language plpython@python_majorversion@u;
161161

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

0 commit comments

Comments
 (0)