@@ -21,7 +21,7 @@ use mz_ore::collections::CollectionExt;
2121use mz_ore:: str:: StrExt ;
2222use mz_pgrepr:: oid;
2323use mz_repr:: role_id:: RoleId ;
24- use mz_repr:: { ColumnName , Datum , ScalarBaseType , SqlRelationType , SqlScalarType } ;
24+ use mz_repr:: { ColumnName , Datum , SqlRelationType , SqlScalarBaseType , SqlScalarType } ;
2525
2626use crate :: ast:: { SelectStatement , Statement } ;
2727use crate :: catalog:: { CatalogType , TypeCategory , TypeReference } ;
@@ -856,9 +856,9 @@ impl From<SqlScalarType> for ParamType {
856856 }
857857}
858858
859- impl From < ScalarBaseType > for ParamType {
860- fn from ( s : ScalarBaseType ) -> ParamType {
861- use ScalarBaseType :: * ;
859+ impl From < SqlScalarBaseType > for ParamType {
860+ fn from ( s : SqlScalarBaseType ) -> ParamType {
861+ use SqlScalarBaseType :: * ;
862862 let s = match s {
863863 Array | List | Map | Record | Range => {
864864 panic ! ( "use polymorphic parameters rather than {:?}" , s) ;
@@ -938,8 +938,8 @@ impl From<ParamType> for ReturnType {
938938 }
939939}
940940
941- impl From < ScalarBaseType > for ReturnType {
942- fn from ( s : ScalarBaseType ) -> ReturnType {
941+ impl From < SqlScalarBaseType > for ReturnType {
942+ fn from ( s : SqlScalarBaseType ) -> ReturnType {
943943 ParamType :: from ( s) . into ( )
944944 }
945945}
@@ -1802,7 +1802,7 @@ macro_rules! privilege_fn {
18021802/// Correlates a built-in function name to its implementations.
18031803pub static PG_CATALOG_BUILTINS : LazyLock < BTreeMap < & ' static str , Func > > = LazyLock :: new ( || {
18041804 use ParamType :: * ;
1805- use ScalarBaseType :: * ;
1805+ use SqlScalarBaseType :: * ;
18061806 let mut builtins = builtins ! {
18071807 // Literal OIDs collected from PG 13 using a version of this query
18081808 // ```sql
@@ -3537,7 +3537,7 @@ pub static INFORMATION_SCHEMA_BUILTINS: LazyLock<BTreeMap<&'static str, Func>> =
35373537
35383538pub static MZ_CATALOG_BUILTINS : LazyLock < BTreeMap < & ' static str , Func > > = LazyLock :: new ( || {
35393539 use ParamType :: * ;
3540- use ScalarBaseType :: * ;
3540+ use SqlScalarBaseType :: * ;
35413541 builtins ! {
35423542 "constant_time_eq" => Scalar {
35433543 params!( Bytes , Bytes ) => BinaryFunc :: from( func:: ConstantTimeEqBytes ) => Bool , oid:: FUNC_CONSTANT_TIME_EQ_BYTES_OID ;
@@ -3952,7 +3952,7 @@ pub static MZ_CATALOG_BUILTINS: LazyLock<BTreeMap<&'static str, Func>> = LazyLoc
39523952
39533953pub static MZ_INTERNAL_BUILTINS : LazyLock < BTreeMap < & ' static str , Func > > = LazyLock :: new ( || {
39543954 use ParamType :: * ;
3955- use ScalarBaseType :: * ;
3955+ use SqlScalarBaseType :: * ;
39563956 builtins ! {
39573957 "aclitem_grantor" => Scalar {
39583958 params!( AclItem ) => UnaryFunc :: AclItemGrantor ( func:: AclItemGrantor ) => Oid , oid:: FUNC_ACL_ITEM_GRANTOR_OID ;
@@ -4339,7 +4339,7 @@ pub static MZ_INTERNAL_BUILTINS: LazyLock<BTreeMap<&'static str, Func>> = LazyLo
43394339
43404340pub static MZ_UNSAFE_BUILTINS : LazyLock < BTreeMap < & ' static str , Func > > = LazyLock :: new ( || {
43414341 use ParamType :: * ;
4342- use ScalarBaseType :: * ;
4342+ use SqlScalarBaseType :: * ;
43434343 builtins ! {
43444344 "mz_all" => Aggregate {
43454345 params!( Any ) => AggregateFunc :: All => Bool , oid:: FUNC_MZ_ALL_OID ;
@@ -4459,7 +4459,7 @@ fn array_to_string(
44594459pub static OP_IMPLS : LazyLock < BTreeMap < & ' static str , Func > > = LazyLock :: new ( || {
44604460 use BinaryFunc as BF ;
44614461 use ParamType :: * ;
4462- use ScalarBaseType :: * ;
4462+ use SqlScalarBaseType :: * ;
44634463 builtins ! {
44644464 // Literal OIDs collected from PG 13 using a version of this query
44654465 // ```sql
0 commit comments