aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/builtins.h
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1998-11-17 14:36:51 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1998-11-17 14:36:51 +0000
commit643c7beddfed0d56c6969acc9c521d022044e770 (patch)
tree5d5e07204fb0fd15760587536d46a52ce9030a4d /src/include/utils/builtins.h
parent8d507c204b82b326ac15be2aaa5fbcf906b8d330 (diff)
downloadpostgresql-643c7beddfed0d56c6969acc9c521d022044e770.tar.gz
postgresql-643c7beddfed0d56c6969acc9c521d022044e770.zip
Add text<->float8 and text<->float4 conversion functions.
This will fix the problem reported by Jose' Soares when trying to cast a float to text.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r--src/include/utils/builtins.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h
index 288c9db46e9..f92cce66960 100644
--- a/src/include/utils/builtins.h
+++ b/src/include/utils/builtins.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: builtins.h,v 1.69 1998/10/29 18:07:09 momjian Exp $
+ * $Id: builtins.h,v 1.70 1998/11/17 14:36:37 thomas Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
@@ -280,6 +280,10 @@ extern float32 i4tof(int32 num);
extern float32 i2tof(int16 num);
extern int32 ftoi4(float32 num);
extern int16 ftoi2(float32 num);
+extern float64 text_float8(text *str);
+extern float32 text_float4(text *str);
+extern text *float8_text(float64 num);
+extern text *float4_text(float32 num);
extern float64 dround(float64 arg1);
extern float64 dtrunc(float64 arg1);
extern float64 dsqrt(float64 arg1);