summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2005-01-29 22:36:03 +0000
committerTom Lane2005-01-29 22:36:03 +0000
commit2c037863098e000059e3b1955a227f950373e59b (patch)
treeda36dea3df9ce6cce480968ca0b392bf17cdc1af
parent9eeeb9809ed1da35915b7cde0f73620f5025dd91 (diff)
Make sure contrib C functions are marked strict where needed.
Kris Jurka
-rw-r--r--contrib/chkpass/chkpass.sql.in12
-rw-r--r--contrib/isbn_issn/isbn_issn.sql.in36
-rw-r--r--contrib/lo/lo.sql.in14
3 files changed, 31 insertions, 31 deletions
diff --git a/contrib/chkpass/chkpass.sql.in b/contrib/chkpass/chkpass.sql.in
index 72ad5e559ca..1ffd72a4404 100644
--- a/contrib/chkpass/chkpass.sql.in
+++ b/contrib/chkpass/chkpass.sql.in
@@ -4,7 +4,7 @@
-- darcy@druid.net
-- http://www.druid.net/darcy/
--
--- $Header: /cvsroot/pgsql/contrib/chkpass/chkpass.sql.in,v 1.1 2001/08/23 16:50:33 tgl Exp $
+-- $Header: /cvsroot/pgsql/contrib/chkpass/chkpass.sql.in,v 1.1.2.1 2005/01/29 22:36:03 tgl Exp $
--
-- best viewed with tabs set to 4
--
@@ -16,12 +16,12 @@
create function chkpass_in(opaque)
returns opaque
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function chkpass_out(opaque)
returns opaque
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create type chkpass (
internallength = 16,
@@ -33,7 +33,7 @@ create type chkpass (
create function raw(chkpass)
returns text
as 'MODULE_PATHNAME', 'chkpass_rout'
- language 'c';
+ language 'c' with (isStrict);
--
-- The various boolean tests:
@@ -42,12 +42,12 @@ create function raw(chkpass)
create function eq(chkpass, text)
returns bool
as 'MODULE_PATHNAME', 'chkpass_eq'
- language 'c';
+ language 'c' with (isStrict);
create function ne(chkpass, text)
returns bool
as 'MODULE_PATHNAME', 'chkpass_ne'
- language 'c';
+ language 'c' with (isStrict);
--
-- Now the operators. Note how some of the parameters to some
diff --git a/contrib/isbn_issn/isbn_issn.sql.in b/contrib/isbn_issn/isbn_issn.sql.in
index f837fad3789..059d8aafa71 100644
--- a/contrib/isbn_issn/isbn_issn.sql.in
+++ b/contrib/isbn_issn/isbn_issn.sql.in
@@ -1,7 +1,7 @@
--
-- PostgreSQL code for ISSNs.
--
--- $Id: isbn_issn.sql.in,v 1.2 2000/06/19 13:53:39 momjian Exp $
+-- $Id: isbn_issn.sql.in,v 1.2.4.1 2005/01/29 22:36:03 tgl Exp $
--
@@ -12,12 +12,12 @@
create function issn_in(opaque)
returns opaque
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function issn_out(opaque)
returns opaque
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create type issn (
internallength = 16,
@@ -33,32 +33,32 @@ create type issn (
create function issn_lt(issn, issn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function issn_le(issn, issn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function issn_eq(issn, issn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function issn_ge(issn, issn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function issn_gt(issn, issn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function issn_ne(issn, issn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
--
-- Now the operators. Note how some of the parameters to some
@@ -116,7 +116,7 @@ create operator <> (
--
-- PostgreSQL code for ISBNs.
--
--- $Id: isbn_issn.sql.in,v 1.2 2000/06/19 13:53:39 momjian Exp $
+-- $Id: isbn_issn.sql.in,v 1.2.4.1 2005/01/29 22:36:03 tgl Exp $
--
--
-- Input and output functions and the type itself:
@@ -125,12 +125,12 @@ create operator <> (
create function isbn_in(opaque)
returns opaque
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function isbn_out(opaque)
returns opaque
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create type isbn (
internallength = 16,
@@ -146,32 +146,32 @@ create type isbn (
create function isbn_lt(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function isbn_le(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function isbn_eq(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function isbn_ge(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function isbn_gt(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
create function isbn_ne(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
--
-- Now the operators. Note how some of the parameters to some
diff --git a/contrib/lo/lo.sql.in b/contrib/lo/lo.sql.in
index f9fed597fd6..2eedce544b0 100644
--- a/contrib/lo/lo.sql.in
+++ b/contrib/lo/lo.sql.in
@@ -1,7 +1,7 @@
--
-- PostgreSQL code for LargeObjects
--
--- $Id: lo.sql.in,v 1.6 2000/11/21 21:51:58 tgl Exp $
+-- $Id: lo.sql.in,v 1.6.4.1 2005/01/29 22:36:03 tgl Exp $
--
--
-- Create the data type
@@ -11,13 +11,13 @@
create function lo_in(opaque)
returns opaque
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
-- used by the lo type, it returns the oid of the object
create function lo_out(opaque)
returns opaque
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
-- finally the type itself
create type lo (
@@ -31,7 +31,7 @@ create type lo (
create function lo_oid(lo)
returns oid
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
-- same function, named to allow it to be used as a type coercion, eg:
-- create table a (image lo);
@@ -40,17 +40,17 @@ create function lo_oid(lo)
create function oid(lo)
returns oid
as 'MODULE_PATHNAME', 'lo_oid'
- language 'c';
+ language 'c' with (isStrict);
-- this allows us to convert an oid to a managed lo object
-- ie: insert into test values (lo_import('/fullpath/file')::lo);
create function lo(oid)
returns lo
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);
-- This is used in triggers
create function lo_manage()
returns opaque
as 'MODULE_PATHNAME'
- language 'c';
+ language 'c' with (isStrict);