00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <config.h>
00022 #include <plugin/information_schema_dictionary/dictionary.h>
00023
00024 using namespace std;
00025 using namespace drizzled;
00026
00027 CheckConstraints::CheckConstraints() :
00028 InformationSchema("CHECK_CONSTRAINTS")
00029 {
00030 add_field("CONSTRAINT_CATALOG");
00031 add_field("CONSTRAINT_SCHEMA");
00032 add_field("CONSTRAINT_NAME");
00033 add_field("CHECK_CLAUSE");
00034 }
00035
00036 void CheckConstraints::Generator::fill()
00037 {
00038 }
00039
00040 bool CheckConstraints::Generator::nextCore()
00041 {
00042 return false;
00043 }
00044
00045 bool CheckConstraints::Generator::next()
00046 {
00047 while (not nextCore())
00048 {
00049 return false;
00050 }
00051
00052 return true;
00053 }
00054
00055 CheckConstraints::Generator::Generator(drizzled::Field **arg):
00056 InformationSchema::Generator(arg),
00057 is_primed(false)
00058 {
00059 }
00060
00061 bool CheckConstraints::Generator::populate()
00062 {
00063 if (not next())
00064 return false;
00065
00066 fill();
00067
00068 return true;
00069 }