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

Public Member Functions

 sqltype (string n)
 
virtual bool consistent (struct sqltype *rvalue)
 This function is used to model postgres-style pseudotypes. More...
 

Static Public Member Functions

static struct sqltypeget (string s)
 

Public Attributes

string name
 

Static Public Attributes

static map< string, struct sqltype * > typemap
 

Detailed Description

Definition at line 20 of file relmodel.hh.

Member Function Documentation

◆ consistent()

bool sqltype::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 in pg_type.

Definition at line 13 of file relmodel.cc.


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