22#include <drizzled/session/transactions.h>
23#include <plugin/session_dictionary/dictionary.h>
25namespace session_dictionary {
27#define LARGEST_USER_SAVEPOINT_NAME 128
29Savepoints::Savepoints() :
30 drizzled::plugin::TableFunction(
"DATA_DICTIONARY",
"USER_DEFINED_SAVEPOINTS")
32 add_field(
"SAVEPOINT_NAME", drizzled::plugin::TableFunction::STRING, LARGEST_USER_SAVEPOINT_NAME,
false);
36 drizzled::plugin::TableFunction::Generator(arg),
37 savepoints(getSession().transaction.savepoints),
38 iter(savepoints.begin())
42Savepoints::Generator::~Generator()
46bool Savepoints::Generator::populate()
48 while (iter != savepoints.end())
51 push(iter->getName());
TODO: Rename this file - func.h is stupid.