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
36498554
Commit
36498554
authored
Jul 07, 2000
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename cash_words_out to cash_words.
parent
76adc095
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/backend/utils/adt/cash.c
src/backend/utils/adt/cash.c
+3
-3
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc.h
+2
-2
src/include/utils/cash.h
src/include/utils/cash.h
+1
-1
No files found.
src/backend/utils/adt/cash.c
View file @
36498554
...
...
@@ -9,7 +9,7 @@
* workings can be found in the book "Software Solutions in C" by
* Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.4
2 2000/07/06 05:48:11 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.4
3 2000/07/07 18:49:52 momjian
Exp $
*/
#include <limits.h>
...
...
@@ -673,12 +673,12 @@ cashsmaller(Cash *c1, Cash *c2)
}
/* cashsmaller() */
/* cash_words
_out
()
/* cash_words()
* This converts a int4 as well but to a representation using words
* Obviously way North American centric - sorry
*/
Datum
cash_words
_out
(
PG_FUNCTION_ARGS
)
cash_words
(
PG_FUNCTION_ARGS
)
{
Cash
value
=
PG_GETARG_CASH
(
0
);
char
buf
[
128
];
...
...
src/include/catalog/pg_proc.h
View file @
36498554
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_proc.h,v 1.14
3 2000/07/06 05:48:22 tgl
Exp $
* $Id: pg_proc.h,v 1.14
4 2000/07/07 18:49:54 momjian
Exp $
*
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
...
...
@@ -1124,7 +1124,7 @@ DATA(insert OID = 886 ( cash_in PGUID 11 f t t t 1 f 790 "0" 100 0 0 100
DESCR
(
"(internal)"
);
DATA
(
insert
OID
=
887
(
cash_out
PGUID
11
f
t
t
t
1
f
23
"0"
100
0
0
100
cash_out
-
));
DESCR
(
"(internal)"
);
DATA
(
insert
OID
=
1273
(
cash_words
_out
PGUID
12
f
t
t
t
1
f
25
"790"
100
0
0
100
cash_words_out
-
));
DATA
(
insert
OID
=
1273
(
cash_words
PGUID
12
f
t
t
t
1
f
25
"790"
100
0
0
100
cash_words
-
));
DESCR
(
"output amount as words"
);
DATA
(
insert
OID
=
888
(
cash_eq
PGUID
11
f
t
t
t
2
f
16
"790 790"
100
0
0
100
cash_eq
-
));
DESCR
(
"equal"
);
...
...
src/include/utils/cash.h
View file @
36498554
...
...
@@ -44,6 +44,6 @@ extern Datum cash_div_int2(PG_FUNCTION_ARGS);
extern
Cash
*
cashlarger
(
Cash
*
c1
,
Cash
*
c2
);
extern
Cash
*
cashsmaller
(
Cash
*
c1
,
Cash
*
c2
);
extern
Datum
cash_words
_out
(
PG_FUNCTION_ARGS
);
extern
Datum
cash_words
(
PG_FUNCTION_ARGS
);
#endif
/* CASH_H */
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