Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
69ed898e
Commit
69ed898e
authored
Feb 07, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MySQL Bugs: #16925: ndb, added additional getters on NdbDictionary::Event
parent
28e92545
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
18 deletions
+25
-18
storage/ndb/src/ndbapi/NdbDictionary.cpp
storage/ndb/src/ndbapi/NdbDictionary.cpp
+1
-18
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
+23
-0
storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp
storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp
+1
-0
No files found.
storage/ndb/src/ndbapi/NdbDictionary.cpp
View file @
69ed898e
...
...
@@ -922,24 +922,7 @@ int NdbDictionary::Event::getNoOfEventColumns() const
const
NdbDictionary
::
Column
*
NdbDictionary
::
Event
::
getEventColumn
(
unsigned
no
)
const
{
if
(
m_impl
.
m_columns
.
size
())
{
if
(
no
<
m_impl
.
m_columns
.
size
())
{
return
m_impl
.
m_columns
[
no
];
}
}
else
if
(
m_impl
.
m_attrIds
.
size
())
{
if
(
no
<
m_impl
.
m_attrIds
.
size
())
{
NdbTableImpl
*
tab
=
m_impl
.
m_tableImpl
;
if
(
tab
==
0
)
return
0
;
return
tab
->
getColumn
(
m_impl
.
m_attrIds
[
no
]);
}
}
return
0
;
return
m_impl
.
getEventColumn
(
no
);
}
void
NdbDictionary
::
Event
::
mergeEvents
(
bool
flag
)
...
...
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
View file @
69ed898e
...
...
@@ -1178,6 +1178,29 @@ int NdbEventImpl::getNoOfEventColumns() const
return
m_attrIds
.
size
()
+
m_columns
.
size
();
}
const
NdbDictionary
::
Column
*
NdbEventImpl
::
getEventColumn
(
unsigned
no
)
const
{
if
(
m_columns
.
size
())
{
if
(
no
<
m_columns
.
size
())
{
return
m_columns
[
no
];
}
}
else
if
(
m_attrIds
.
size
())
{
if
(
no
<
m_attrIds
.
size
())
{
NdbTableImpl
*
tab
=
m_tableImpl
;
if
(
tab
==
0
)
return
0
;
return
tab
->
getColumn
(
m_attrIds
[
no
]);
}
}
return
0
;
}
/**
* NdbDictionaryImpl
*/
...
...
storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp
View file @
69ed898e
...
...
@@ -287,6 +287,7 @@ public:
void
setReport
(
NdbDictionary
::
Event
::
EventReport
r
);
NdbDictionary
::
Event
::
EventReport
getReport
()
const
;
int
getNoOfEventColumns
()
const
;
const
NdbDictionary
::
Column
*
getEventColumn
(
unsigned
no
)
const
;
void
print
()
{
ndbout_c
(
"NdbEventImpl: id=%d, key=%d"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment