File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
src/java/deploy/org/postgresql/pljava/deploy Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export JNIDIR := $(TARGETDIR)/jni
3939export CLASSDIR := $(TARGETDIR ) /classes
4040export PLJAVA_MAJOR_VER := 1
4141export PLJAVA_MINOR_VER := 3
42- export PLJAVA_PATCH_VER := b3
42+ export PLJAVA_PATCH_VER := 0
4343export PLJAVA_VERSION := $(PLJAVA_MAJOR_VER ) .$(PLJAVA_MINOR_VER ) .$(PLJAVA_PATCH_VER )
4444export TAR := /bin/tar
4545
Original file line number Diff line number Diff line change @@ -450,6 +450,20 @@ public void initializeSQLJSchema()
450450 " AS 'org.postgresql.pljava.management.Commands.getClassPath'" +
451451 " LANGUAGE java STABLE SECURITY DEFINER" );
452452
453+ // The following functions are not included in the standard. Type mapping
454+ // is radically different in SQL 2003 and requires a lot of additions to
455+ // the PostgreSQL dialect.
456+ //
457+ stmt .execute (
458+ "CREATE FUNCTION sqlj.add_type_mapping(VARCHAR, VARCHAR) RETURNS void" +
459+ " AS 'org.postgresql.pljava.management.Commands.addTypeMapping'" +
460+ " LANGUAGE java SECURITY DEFINER" );
461+
462+ stmt .execute (
463+ "CREATE FUNCTION sqlj.drop_type_mapping(VARCHAR) RETURNS void" +
464+ " AS 'org.postgresql.pljava.management.Commands.dropTypeMapping'" +
465+ " LANGUAGE java SECURITY DEFINER" );
466+
453467 stmt .close ();
454468 }
455469
You can’t perform that action at this time.
0 commit comments