Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2c03786

Browse files
committed
Make sure contrib C functions are marked strict where needed.
Kris Jurka
1 parent9eeeb98 commit2c03786

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

‎contrib/chkpass/chkpass.sql.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-- darcy@druid.net
55
-- http://www.druid.net/darcy/
66
--
7-
-- $Header: /cvsroot/pgsql/contrib/chkpass/chkpass.sql.in,v 1.1 2001/08/23 16:50:33 tgl Exp $
7+
-- $Header: /cvsroot/pgsql/contrib/chkpass/chkpass.sql.in,v 1.1.2.1 2005/01/29 22:36:03 tgl Exp $
88
--
99
-- best viewed with tabs set to 4
1010
--
@@ -16,12 +16,12 @@
1616
create function chkpass_in(opaque)
1717
returns opaque
1818
as 'MODULE_PATHNAME'
19-
language 'c';
19+
language 'c' with (isStrict);
2020

2121
create function chkpass_out(opaque)
2222
returns opaque
2323
as 'MODULE_PATHNAME'
24-
language 'c';
24+
language 'c' with (isStrict);
2525

2626
create type chkpass (
2727
internallength = 16,
@@ -33,7 +33,7 @@ create type chkpass (
3333
create function raw(chkpass)
3434
returns text
3535
as 'MODULE_PATHNAME', 'chkpass_rout'
36-
language 'c';
36+
language 'c' with (isStrict);
3737

3838
--
3939
--The various boolean tests:
@@ -42,12 +42,12 @@ create function raw(chkpass)
4242
create function eq(chkpass, text)
4343
returns bool
4444
as 'MODULE_PATHNAME', 'chkpass_eq'
45-
language 'c';
45+
language 'c' with (isStrict);
4646

4747
create function ne(chkpass, text)
4848
returns bool
4949
as 'MODULE_PATHNAME', 'chkpass_ne'
50-
language 'c';
50+
language 'c' with (isStrict);
5151

5252
--
5353
--Now the operators. Note how some of the parameters to some

‎contrib/isbn_issn/isbn_issn.sql.in

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--
22
--PostgreSQL code for ISSNs.
33
--
4-
--$Id: isbn_issn.sql.in,v 1.2 2000/06/19 13:53:39 momjian Exp $
4+
--$Id: isbn_issn.sql.in,v 1.2.4.1 2005/01/29 22:36:03 tgl Exp $
55
--
66

77

@@ -12,12 +12,12 @@
1212
create function issn_in(opaque)
1313
returns opaque
1414
as 'MODULE_PATHNAME'
15-
language 'c';
15+
language 'c' with (isStrict);
1616

1717
create function issn_out(opaque)
1818
returns opaque
1919
as 'MODULE_PATHNAME'
20-
language 'c';
20+
language 'c' with (isStrict);
2121

2222
create type issn (
2323
internallength = 16,
@@ -33,32 +33,32 @@ create type issn (
3333
create function issn_lt(issn, issn)
3434
returns bool
3535
as 'MODULE_PATHNAME'
36-
language 'c';
36+
language 'c' with (isStrict);
3737

3838
create function issn_le(issn, issn)
3939
returns bool
4040
as 'MODULE_PATHNAME'
41-
language 'c';
41+
language 'c' with (isStrict);
4242

4343
create function issn_eq(issn, issn)
4444
returns bool
4545
as 'MODULE_PATHNAME'
46-
language 'c';
46+
language 'c' with (isStrict);
4747

4848
create function issn_ge(issn, issn)
4949
returns bool
5050
as 'MODULE_PATHNAME'
51-
language 'c';
51+
language 'c' with (isStrict);
5252

5353
create function issn_gt(issn, issn)
5454
returns bool
5555
as 'MODULE_PATHNAME'
56-
language 'c';
56+
language 'c' with (isStrict);
5757

5858
create function issn_ne(issn, issn)
5959
returns bool
6060
as 'MODULE_PATHNAME'
61-
language 'c';
61+
language 'c' with (isStrict);
6262

6363
--
6464
--Now the operators. Note how some of the parameters to some
@@ -116,7 +116,7 @@ create operator <> (
116116
--
117117
--PostgreSQL code for ISBNs.
118118
--
119-
--$Id: isbn_issn.sql.in,v 1.2 2000/06/19 13:53:39 momjian Exp $
119+
--$Id: isbn_issn.sql.in,v 1.2.4.1 2005/01/29 22:36:03 tgl Exp $
120120
--
121121
--
122122
--Input and output functions and the type itself:
@@ -125,12 +125,12 @@ create operator <> (
125125
create function isbn_in(opaque)
126126
returns opaque
127127
as 'MODULE_PATHNAME'
128-
language 'c';
128+
language 'c' with (isStrict);
129129

130130
create function isbn_out(opaque)
131131
returns opaque
132132
as 'MODULE_PATHNAME'
133-
language 'c';
133+
language 'c' with (isStrict);
134134

135135
create type isbn (
136136
internallength = 16,
@@ -146,32 +146,32 @@ create type isbn (
146146
create function isbn_lt(isbn, isbn)
147147
returns bool
148148
as 'MODULE_PATHNAME'
149-
language 'c';
149+
language 'c' with (isStrict);
150150

151151
create function isbn_le(isbn, isbn)
152152
returns bool
153153
as 'MODULE_PATHNAME'
154-
language 'c';
154+
language 'c' with (isStrict);
155155

156156
create function isbn_eq(isbn, isbn)
157157
returns bool
158158
as 'MODULE_PATHNAME'
159-
language 'c';
159+
language 'c' with (isStrict);
160160

161161
create function isbn_ge(isbn, isbn)
162162
returns bool
163163
as 'MODULE_PATHNAME'
164-
language 'c';
164+
language 'c' with (isStrict);
165165

166166
create function isbn_gt(isbn, isbn)
167167
returns bool
168168
as 'MODULE_PATHNAME'
169-
language 'c';
169+
language 'c' with (isStrict);
170170

171171
create function isbn_ne(isbn, isbn)
172172
returns bool
173173
as 'MODULE_PATHNAME'
174-
language 'c';
174+
language 'c' with (isStrict);
175175

176176
--
177177
--Now the operators. Note how some of the parameters to some

‎contrib/lo/lo.sql.in

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--
22
--PostgreSQL code for LargeObjects
33
--
4-
--$Id: lo.sql.in,v 1.6 2000/11/21 21:51:58 tgl Exp $
4+
--$Id: lo.sql.in,v 1.6.4.1 2005/01/29 22:36:03 tgl Exp $
55
--
66
--
77
--Create the data type
@@ -11,13 +11,13 @@
1111
create function lo_in(opaque)
1212
returns opaque
1313
as 'MODULE_PATHNAME'
14-
language 'c';
14+
language 'c' with (isStrict);
1515

1616
-- used by the lo type, it returns the oid of the object
1717
create function lo_out(opaque)
1818
returns opaque
1919
as 'MODULE_PATHNAME'
20-
language 'c';
20+
language 'c' with (isStrict);
2121

2222
-- finally the type itself
2323
create type lo (
@@ -31,7 +31,7 @@ create type lo (
3131
create function lo_oid(lo)
3232
returns oid
3333
as 'MODULE_PATHNAME'
34-
language 'c';
34+
language 'c' with (isStrict);
3535

3636
-- same function, named to allow it to be used as a type coercion, eg:
3737
-- create table a (image lo);
@@ -40,17 +40,17 @@ create function lo_oid(lo)
4040
create function oid(lo)
4141
returns oid
4242
as 'MODULE_PATHNAME', 'lo_oid'
43-
language 'c';
43+
language 'c' with (isStrict);
4444

4545
-- this allows us to convert an oid to a managed lo object
4646
-- ie: insert into test values (lo_import('/fullpath/file')::lo);
4747
create function lo(oid)
4848
returns lo
4949
as 'MODULE_PATHNAME'
50-
language 'c';
50+
language 'c' with (isStrict);
5151

5252
-- This is used in triggers
5353
create function lo_manage()
5454
returns opaque
5555
as 'MODULE_PATHNAME'
56-
language 'c';
56+
language 'c' with (isStrict);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp