SQLsmith  v1.2.1-5-gfacd7a8
A random SQL query generator
relmodel.cc
1 #include "relmodel.hh"
2 
3 map<string, sqltype*> sqltype::typemap;
4 
5 sqltype * sqltype::get(string n)
6 {
7  if (typemap.count(n))
8  return typemap[n];
9  else
10  return typemap[n] = new sqltype(n);
11 }
12 
13 bool sqltype::consistent(struct sqltype *rvalue)
14 {
15  return this == rvalue;
16 }
supporting classes for the grammar
virtual bool consistent(struct sqltype *rvalue)
This function is used to model postgres-style pseudotypes.
Definition: relmodel.cc:13