SQLsmith  v1.2.1-5-gfacd7a8
A random SQL query generator
Public Member Functions | Public Attributes | List of all members
pg_type Struct Reference
Inheritance diagram for pg_type:
Inheritance graph
Collaboration diagram for pg_type:
Collaboration graph

Public Member Functions

 pg_type (string name, OID oid, char typdelim, OID typrelid, OID typelem, OID typarray, char typtype)
 
virtual bool consistent (struct sqltype *rvalue)
 This function is used to model postgres-style pseudotypes. More...
 
bool consistent_ (sqltype *rvalue)
 
- Public Member Functions inherited from sqltype
 sqltype (string n)
 

Public Attributes

OID oid_
 
char typdelim_
 
OID typrelid_
 
OID typelem_
 
OID typarray_
 
char typtype_
 
- Public Attributes inherited from sqltype
string name
 

Additional Inherited Members

- Static Public Member Functions inherited from sqltype
static struct sqltypeget (string s)
 
- Static Public Attributes inherited from sqltype
static map< string, struct sqltype * > typemap
 

Detailed Description

Definition at line 19 of file postgres.hh.

Member Function Documentation

◆ consistent()

bool pg_type::consistent ( struct sqltype rvalue)
virtual

This function is used to model postgres-style pseudotypes.

A generic type is consistent with a more concrete type. E.G., anyarray->consistent(intarray) is true while int4array->consistent(anyarray) is false

There must not be cycles in the consistency graph, since the grammar will use fixpoint iteration to resolve type conformance situations in the direction of more concrete types

Reimplemented from sqltype.

Definition at line 19 of file postgres.cc.


The documentation for this struct was generated from the following files: