postgres.git / summary / log / commit / refs
commit 139f19c30221968e7d3bf64fe303cb41517e4601
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Mon Jul 17 02:22:50 2000 +0000
First released in: 7.1
update pltcl test to have at least some chance of running ... still
seems to be busted though ...
src/pl/tcl/test/runtest | 4 ++--
src/pl/tcl/test/test_mklang.sql | 9 ---------
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/src/pl/tcl/test/runtest b/src/pl/tcl/test/runtest
index 08b55e1b1b9..d1cfb330826 100755
--- a/src/pl/tcl/test/runtest
+++ b/src/pl/tcl/test/runtest
@@ -4,13 +4,13 @@ DBNAME=pltcl_test
export DBNAME
echo "**** Destroy old database $DBNAME ****"
-destroydb $DBNAME
+dropdb $DBNAME
echo "**** Create test database $DBNAME ****"
createdb $DBNAME
echo "**** Create procedural language pltcl ****"
-psql -q -n $DBNAME <test_mklang.sql
+createlang pltcl $DBNAME
echo "**** Create tables, functions and triggers ****"
psql -q -n $DBNAME <test_setup.sql
diff --git a/src/pl/tcl/test/test_mklang.sql b/src/pl/tcl/test/test_mklang.sql
deleted file mode 100644
index 48176f48503..00000000000
--- a/src/pl/tcl/test/test_mklang.sql
+++ /dev/null
@@ -1,9 +0,0 @@
-
-create function pltcl_call_handler() returns opaque
- as '/usr/local/pgsql/lib/pltcl.so'
- language 'C';
-
-create trusted procedural language 'pltcl'
- handler pltcl_call_handler
- lancompiler 'PL/Tcl';
-
[parent: a2c6bf5a59ee]