When I made the cube(text) function for 7.3, I neglected to add a
authorBruce Momjian
Sat, 23 Nov 2002 03:50:50 +0000 (03:50 +0000)
committerBruce Momjian
Sat, 23 Nov 2002 03:50:50 +0000 (03:50 +0000)
matching create cast command. The attached diff adds a create cast as
assignment to cube.sql.in .

Bruno Wolff III

contrib/cube/cube.sql.in

index 5aadf7ba1bbb9900d4fc45334b88c15c29317abd..60ac7d8aee022644f1dee22c0b4770d317ad404a 100644 (file)
@@ -32,6 +32,8 @@ LANGUAGE 'C' IMMUTABLE STRICT;
 
 COMMENT ON FUNCTION cube(text) IS 'convert text to cube';
 
+CREATE CAST (text AS cube) WITH FUNCTION cube(text) AS ASSIGNMENT;
+
 --
 -- External C-functions for R-tree methods
 --