From 8281f55a941a9265299eeb306fec8622207ef6bd Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 1 Jan 2022 15:31:53 -0800 Subject: Add missing PostgreSQL standard datatypes Adding UUID, NUMERIC, DECIMAL, FLOAT4 and FLOAT8. Fixes #782 --- drivers/adodb-postgres64.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php index f73fd1eb..d04b7f67 100644 --- a/drivers/adodb-postgres64.inc.php +++ b/drivers/adodb-postgres64.inc.php @@ -1095,6 +1095,7 @@ class ADORecordSet_postgres64 extends ADORecordSet{ case 'CIDR': case 'INET': case 'MACADDR': + case 'UUID': if ($len <= $this->blobSize) return 'C'; case 'TEXT': @@ -1135,6 +1136,12 @@ class ADORecordSet_postgres64 extends ADORecordSet{ case 'SERIAL': return 'R'; + case 'NUMERIC': + case 'DECIMAL': + case 'FLOAT4': + case 'FLOAT8': + return 'N'; + default: return ADODB_DEFAULT_METATYPE; } -- cgit v1.3