Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
cc1b420c
Commit
cc1b420c
authored
Oct 30, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add routines istrue() and isfalse() to directly evaluate boolean type.
parent
770352d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
src/backend/utils/adt/bool.c
src/backend/utils/adt/bool.c
+13
-1
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc.h
+4
-1
src/include/utils/builtins.h
src/include/utils/builtins.h
+3
-1
No files found.
src/backend/utils/adt/bool.c
View file @
cc1b420c
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.
9 1997/10/25 05:09:58
thomas Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.
10 1997/10/30 16:45:12
thomas Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -116,3 +116,15 @@ boolgt(bool arg1, bool arg2)
{
return
(
arg1
>
arg2
);
}
bool
istrue
(
bool
arg1
)
{
return
(
arg1
==
TRUE
);
}
/* istrue() */
bool
isfalse
(
bool
arg1
)
{
return
(
arg1
!=
TRUE
);
}
/* istrue() */
src/include/catalog/pg_proc.h
View file @
cc1b420c
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_proc.h,v 1.3
2 1997/10/25 05:29:48
thomas Exp $
* $Id: pg_proc.h,v 1.3
3 1997/10/30 16:44:06
thomas Exp $
*
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
...
...
@@ -729,6 +729,9 @@ DATA(insert OID = 947 ( oidnamene PGUID 11 f t f 2 f 16 "911 911" 100 0 0 1
DATA
(
insert
OID
=
948
(
oidnamecmp
PGUID
11
f
t
f
2
f
23
"911 911"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
949
(
mkoidname
PGUID
11
f
t
f
2
f
911
"26 19"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
950
(
istrue
PGUID
11
f
t
f
1
f
16
"16"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
951
(
isfalse
PGUID
11
f
t
f
1
f
16
"16"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
952
(
lo_open
PGUID
11
f
t
f
2
f
23
"26 23"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
953
(
lo_close
PGUID
11
f
t
f
1
f
23
"23"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
954
(
loread
PGUID
11
f
t
f
2
f
17
"23 23"
100
0
0
100
foo
bar
));
...
...
src/include/utils/builtins.h
View file @
cc1b420c
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: builtins.h,v 1.2
8 1997/10/25 05:40:43
thomas Exp $
* $Id: builtins.h,v 1.2
9 1997/10/30 16:42:50
thomas Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
...
...
@@ -35,6 +35,8 @@ extern bool booleq(bool arg1, bool arg2);
extern
bool
boolne
(
bool
arg1
,
bool
arg2
);
extern
bool
boollt
(
bool
arg1
,
bool
arg2
);
extern
bool
boolgt
(
bool
arg1
,
bool
arg2
);
extern
bool
istrue
(
bool
arg1
);
extern
bool
isfalse
(
bool
arg1
);
/* char.c */
extern
int32
charin
(
char
*
ch
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment