diff main/database/src/converters.h @ 11474:4fd39d36eff5 octave-forge

Retrieve element information of composite types already at connection time. Exclude negative element numbers (system columns) of composite types corresponding to tables.
author i7tiol
date Fri, 22 Feb 2013 10:16:58 +0000
parents 9ef769abf53d
children d14a23884d9c
line wrap: on
line diff
--- a/main/database/src/converters.h	Fri Feb 22 06:56:15 2013 +0000
+++ b/main/database/src/converters.h	Fri Feb 22 10:16:58 2013 +0000
@@ -39,12 +39,14 @@
 
 typedef int (*oct_pq_from_octave_fp_t) (const octave_value &, oct_pq_dynvec_t &);
 
+typedef std::vector<Oid> oct_pq_el_oids_t;
+
 // some objects will be constants, some will be allocated
 typedef struct
 {
   Oid oid; // read from server
   Oid aoid; // array oid // read from server
-  Oid relid; // pg_attribute.attrelid, zero for non-composite types
+  oct_pq_el_oids_t el_oids; // element oids, empty for non-composite types
   bool is_composite; // false for constant objects
   bool is_enum; // false for constant objects
   bool is_not_constant; // false for constant objects