7
7
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
8
8
# Portions Copyright (c) 1994, Regents of the University of California
9
9
#
10
- # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.40 2002/10/16 03:24:09 momjian Exp $
10
+ # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.41 2002/10/16 03:44:28 momjian Exp $
11
11
#
12
12
# -------------------------------------------------------------------------
13
13
270
270
# Create the call handler and the language
271
271
# ----------
272
272
if [" $handlerexists " = no ]; then
273
- sqlcmd=" SET autocommit= 'on';CREATE FUNCTION\" $handler \" () RETURNS LANGUAGE_HANDLER AS '$PGLIB /${object} ' LANGUAGE C;"
273
+ sqlcmd=" SET autocommitTO 'on';CREATE FUNCTION\" $handler \" () RETURNS LANGUAGE_HANDLER AS '$PGLIB /${object} ' LANGUAGE C;"
274
274
if [" $showsql " = yes ]; then
275
275
echo " $sqlcmd "
276
276
fi
@@ -281,7 +281,7 @@ if [ "$handlerexists" = no ]; then
281
281
fi
282
282
fi
283
283
284
- sqlcmd=" SET autocommit= 'on';CREATE${trusted} LANGUAGE\" $langname \" HANDLER\" $handler \" ;"
284
+ sqlcmd=" SET autocommitTO 'on';CREATE${trusted} LANGUAGE\" $langname \" HANDLER\" $handler \" ;"
285
285
if [" $showsql " = yes ]; then
286
286
echo " $sqlcmd "
287
287
fi
297
297
# seems best to disable public USAGE for an untrusted one.
298
298
# ----------
299
299
if test -z" $trusted " ; then
300
- sqlcmd=" SET autocommit= 'on';REVOKE ALL ON LANGUAGE\" $langname \" FROM PUBLIC;"
300
+ sqlcmd=" SET autocommitTO 'on';REVOKE ALL ON LANGUAGE\" $langname \" FROM PUBLIC;"
301
301
if [" $showsql " = yes ]; then
302
302
echo " $sqlcmd "
303
303
fi