Skip to content

Commit 247ca0a

Browse files
committed
Preparation for 1.3.0 final
1 parent 409ce0a commit 247ca0a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export JNIDIR := $(TARGETDIR)/jni
3939
export CLASSDIR := $(TARGETDIR)/classes
4040
export PLJAVA_MAJOR_VER := 1
4141
export PLJAVA_MINOR_VER := 3
42-
export PLJAVA_PATCH_VER := b3
42+
export PLJAVA_PATCH_VER := 0
4343
export PLJAVA_VERSION := $(PLJAVA_MAJOR_VER).$(PLJAVA_MINOR_VER).$(PLJAVA_PATCH_VER)
4444
export TAR := /bin/tar
4545

src/java/deploy/org/postgresql/pljava/deploy/Deployer.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)