mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-03 11:10:56 +08:00
Added casts between half to double precision [skip ci]
This commit is contained in:
@@ -94,6 +94,18 @@ SELECT '1.5'::real::half;
|
||||
1.5
|
||||
(1 row)
|
||||
|
||||
SELECT '1.5'::half::double precision;
|
||||
float8
|
||||
--------
|
||||
1.5
|
||||
(1 row)
|
||||
|
||||
SELECT '1.5'::double precision::half;
|
||||
half
|
||||
------
|
||||
1.5
|
||||
(1 row)
|
||||
|
||||
SELECT '1.5'::half::numeric;
|
||||
numeric
|
||||
---------
|
||||
|
||||
@@ -21,6 +21,9 @@ SELECT 'Infinity'::real::half;
|
||||
SELECT '1.5'::half::real;
|
||||
SELECT '1.5'::real::half;
|
||||
|
||||
SELECT '1.5'::half::double precision;
|
||||
SELECT '1.5'::double precision::half;
|
||||
|
||||
SELECT '1.5'::half::numeric;
|
||||
SELECT '1.5'::numeric::half;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user