1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

added using table object reference in event creation

This commit is contained in:
tomas@poseidon.ndb.mysql.com
2005-01-07 13:00:51 +01:00
parent 95a2dbdd64
commit 7f3e6084cd
5 changed files with 51 additions and 4 deletions

View File

@@ -140,6 +140,7 @@ int main()
eventTableName,
eventColumnName,
noEventColumnName);
int j= 0;
while (j < 5) {
@@ -238,8 +239,10 @@ int myCreateEvent(Ndb* myNdb,
NdbDictionary::Dictionary *myDict= myNdb->getDictionary();
if (!myDict) APIERROR(myNdb->getNdbError());
NdbDictionary::Event myEvent(eventName);
myEvent.setTable(eventTableName);
const NdbDictionary::Table *table= myDict->getTable(eventTableName);
if (!table) APIERROR(myDict->getNdbError());
NdbDictionary::Event myEvent(eventName, *table);
myEvent.addTableEvent(NdbDictionary::Event::TE_ALL);
// myEvent.addTableEvent(NdbDictionary::Event::TE_INSERT);
// myEvent.addTableEvent(NdbDictionary::Event::TE_UPDATE);