@@ -100,7 +100,7 @@ pub mod notification;
100
100
101
101
const TYPEINFO_QUERY : & ' static str = "__typeinfo" ;
102
102
const TYPEINFO_ENUM_QUERY : & ' static str = "__typeinfo_enum" ;
103
- const TYPEINFO_ARRAY_QUERY : & ' static str = "__typeinfo_array " ;
103
+ const TYPEINFO_COMPOSITE_QUERY : & ' static str = "__typeinfo_composite " ;
104
104
105
105
/// A type alias of the result returned by many methods.
106
106
pub type Result < T > = result:: Result < T , Error > ;
@@ -477,7 +477,7 @@ impl InnerConnection {
477
477
Err ( Error :: Conversion ( _) ) => unreachable ! ( ) ,
478
478
}
479
479
480
- match self . raw_prepare ( TYPEINFO_ARRAY_QUERY ,
480
+ match self . raw_prepare ( TYPEINFO_COMPOSITE_QUERY ,
481
481
"SELECT attname, atttypid \
482
482
FROM pg_catalog.pg_attribute \
483
483
WHERE attrelid = $1 \
@@ -919,7 +919,7 @@ impl InnerConnection {
919
919
}
920
920
921
921
fn read_composite_fields ( & mut self , relid : Oid ) -> Result < Vec < Field > > {
922
- try!( self . raw_execute ( TYPEINFO_ARRAY_QUERY , "" , 0 , & [ Type :: Oid ] , & [ & relid] ) ) ;
922
+ try!( self . raw_execute ( TYPEINFO_COMPOSITE_QUERY , "" , 0 , & [ Type :: Oid ] , & [ & relid] ) ) ;
923
923
let mut rows = VecDeque :: new ( ) ;
924
924
try!( self . read_rows ( & mut rows) ) ;
925
925
0 commit comments