Skip to content

Commit 892d5e8

Browse files
authored
Merge pull request IvorySQL#986 from rophy/feat/auto-tx
PRAGMA AUTONOMOUS_TRANSACTION Implementation
2 parents 3dfb676 + 48c46fc commit 892d5e8

File tree

11 files changed

+1769
-24
lines changed

11 files changed

+1769
-24
lines changed

src/pl/plisql/src/Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ rpath =
3939

4040
OBJS = \
4141
$(WIN32RES) \
42+
pl_autonomous.o \
4243
pl_comp.o \
4344
pl_exec.o \
4445
pl_funcs.o \
@@ -52,13 +53,17 @@ OBJS = \
5253

5354
DATA = plisql.control plisql--1.0.sql
5455

56+
# dblink extension is required for autonomous transactions
57+
# Install dblink into the test instance
58+
EXTRA_INSTALL = contrib/dblink
59+
5560
ORACLE_REGRESS_OPTS = --dbname=$(PL_TESTDB)
5661

5762
REGRESS = plisql_array plisql_call plisql_control plisql_copy plisql_domain \
5863
plisql_record plisql_cache plisql_simple plisql_transaction \
5964
plisql_trap plisql_trigger plisql_varprops plisql_nested_subproc \
6065
plisql_nested_subproc2 plisql_out_parameter plisql_type_rowtype \
61-
plisql_exception
66+
plisql_exception plisql_autonomous
6267

6368
# where to find ora_gen_keywordlist.pl and subsidiary files
6469
TOOLSDIR = $(top_srcdir)/src/tools
@@ -87,6 +92,7 @@ install-headers: installdirs
8792
$(INSTALL_DATA) '$(srcdir)/plisql.h' '$(DESTDIR)$(includedir_server)'
8893
$(INSTALL_DATA) '$(srcdir)/pl_subproc_function.h' '$(DESTDIR)$(includedir_server)'
8994
$(INSTALL_DATA) '$(srcdir)/pl_package.h' '$(DESTDIR)$(includedir_server)'
95+
$(INSTALL_DATA) '$(srcdir)/pl_autonomous.h' '$(DESTDIR)$(includedir_server)'
9096

9197
uninstall-data:
9298
rm -f $(addprefix '$(DESTDIR)$(datadir)/extension'/, $(notdir $(DATA)))
@@ -95,12 +101,13 @@ uninstall-headers:
95101
rm -f '$(DESTDIR)$(includedir_server)/plisql.h'
96102
rm -f '$(DESTDIR)$(includedir_server)/pl_subproc_function.h'
97103
rm -f '$(DESTDIR)$(includedir_server)/pl_package.h'
104+
rm -f '$(DESTDIR)$(includedir_server)/pl_autonomous.h'
98105

99106
.PHONY: install-data install-headers uninstall-data uninstall-headers
100107

101108

102109
# Force these dependencies to be known even without dependency info built:
103-
pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o pl_scanner.o: plisql.h pl_gram.h plerrcodes.h pl_subproc_function.h pl_package.h
110+
pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o pl_scanner.o pl_autonomous.o: plisql.h pl_gram.h plerrcodes.h pl_subproc_function.h pl_package.h pl_autonomous.h
104111
pl_scanner.o: pl_reserved_kwlist_d.h pl_unreserved_kwlist_d.h
105112

106113
# See notes in src/backend/parser/Makefile about the following two rules

0 commit comments

Comments
 (0)