File: relmodel.cc

package info (click to toggle)
sqlsmith 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 540 kB
  • sloc: cpp: 3,221; sql: 175; makefile: 33; sh: 1
file content (16 lines) | stat: -rw-r--r-- 275 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "relmodel.hh"

map<string, sqltype*> sqltype::typemap;

sqltype * sqltype::get(string n)
{
  if (typemap.count(n))
    return typemap[n];
  else
    return typemap[n] = new sqltype(n);
}

bool sqltype::consistent(struct sqltype *rvalue)
{
  return this == rvalue;
}