projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91e9558
)
Add documentation about the issues of casting MONEY to/from numeric
author
Bruce Momjian
Tue, 27 Nov 2007 05:49:58 +0000
(
05:49
+0000)
committer
Bruce Momjian
Tue, 27 Nov 2007 05:49:58 +0000
(
05:49
+0000)
types.
doc/src/sgml/datatype.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/datatype.sgml
b/doc/src/sgml/datatype.sgml
index c67c6268556776714f30786abac2132272a11dc0..dccb88c8d87a0eb94e5e95bfb909be31e04ad92e 100644
(file)
--- a/
doc/src/sgml/datatype.sgml
+++ b/
doc/src/sgml/datatype.sgml
@@
-1,4
+1,4
@@
-
+
Data Types
@@
-842,6
+842,14
@@
ALTER SEQUENCE
tablename
_
floating-point literals, as well as
typical
currency formatting, such as
'$1,000.00'
.
Output is generally in the latter form but depends on the locale.
+ Non-quoted numeric values can be converted to
money
by
+ casting the numeric value to
text
and then
+
money
:
+
+SELECT 1234::text::money;
+
+ There is no simple way of doing the reverse; casting a
money
value to a
+ numeric type.