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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c1cfd9b4
Commit
c1cfd9b4
authored
Jan 04, 2005
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added const declarations
parent
24ceb874
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
ndb/include/ndbapi/NdbDictionary.hpp
ndb/include/ndbapi/NdbDictionary.hpp
+4
-4
ndb/src/ndbapi/NdbDictionary.cpp
ndb/src/ndbapi/NdbDictionary.cpp
+6
-4
No files found.
ndb/include/ndbapi/NdbDictionary.hpp
View file @
c1cfd9b4
...
@@ -1023,7 +1023,7 @@ public:
...
@@ -1023,7 +1023,7 @@ public:
* @param name Name of table to get
* @param name Name of table to get
* @return table if successful otherwise NULL.
* @return table if successful otherwise NULL.
*/
*/
const
Table
*
getTable
(
const
char
*
name
);
const
Table
*
getTable
(
const
char
*
name
)
const
;
/**
/**
* Get index with given name, NULL if undefined
* Get index with given name, NULL if undefined
...
@@ -1032,7 +1032,7 @@ public:
...
@@ -1032,7 +1032,7 @@ public:
* @return index if successful, otherwise 0.
* @return index if successful, otherwise 0.
*/
*/
const
Index
*
getIndex
(
const
char
*
indexName
,
const
Index
*
getIndex
(
const
char
*
indexName
,
const
char
*
tableName
);
const
char
*
tableName
)
const
;
/**
/**
* Fetch list of indexes of given table.
* Fetch list of indexes of given table.
...
@@ -1173,10 +1173,10 @@ public:
...
@@ -1173,10 +1173,10 @@ public:
class
NdbDictionaryImpl
&
m_impl
;
class
NdbDictionaryImpl
&
m_impl
;
Dictionary
(
NdbDictionaryImpl
&
);
Dictionary
(
NdbDictionaryImpl
&
);
const
Table
*
getIndexTable
(
const
char
*
indexName
,
const
Table
*
getIndexTable
(
const
char
*
indexName
,
const
char
*
tableName
);
const
char
*
tableName
)
const
;
public:
public:
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
const
Table
*
getTable
(
const
char
*
name
,
void
**
data
);
const
Table
*
getTable
(
const
char
*
name
,
void
**
data
)
const
;
void
set_local_table_data_size
(
unsigned
sz
);
void
set_local_table_data_size
(
unsigned
sz
);
#endif
#endif
};
};
...
...
ndb/src/ndbapi/NdbDictionary.cpp
View file @
c1cfd9b4
...
@@ -706,7 +706,8 @@ NdbDictionary::Dictionary::alterTable(const Table & t){
...
@@ -706,7 +706,8 @@ NdbDictionary::Dictionary::alterTable(const Table & t){
}
}
const
NdbDictionary
::
Table
*
const
NdbDictionary
::
Table
*
NdbDictionary
::
Dictionary
::
getTable
(
const
char
*
name
,
void
**
data
){
NdbDictionary
::
Dictionary
::
getTable
(
const
char
*
name
,
void
**
data
)
const
{
NdbTableImpl
*
t
=
m_impl
.
getTable
(
name
,
data
);
NdbTableImpl
*
t
=
m_impl
.
getTable
(
name
,
data
);
if
(
t
)
if
(
t
)
return
t
->
m_facade
;
return
t
->
m_facade
;
...
@@ -719,7 +720,8 @@ void NdbDictionary::Dictionary::set_local_table_data_size(unsigned sz)
...
@@ -719,7 +720,8 @@ void NdbDictionary::Dictionary::set_local_table_data_size(unsigned sz)
}
}
const
NdbDictionary
::
Table
*
const
NdbDictionary
::
Table
*
NdbDictionary
::
Dictionary
::
getTable
(
const
char
*
name
){
NdbDictionary
::
Dictionary
::
getTable
(
const
char
*
name
)
const
{
return
getTable
(
name
,
0
);
return
getTable
(
name
,
0
);
}
}
...
@@ -752,7 +754,7 @@ NdbDictionary::Dictionary::dropIndex(const char * indexName,
...
@@ -752,7 +754,7 @@ NdbDictionary::Dictionary::dropIndex(const char * indexName,
const
NdbDictionary
::
Index
*
const
NdbDictionary
::
Index
*
NdbDictionary
::
Dictionary
::
getIndex
(
const
char
*
indexName
,
NdbDictionary
::
Dictionary
::
getIndex
(
const
char
*
indexName
,
const
char
*
tableName
)
const
char
*
tableName
)
const
{
{
NdbIndexImpl
*
i
=
m_impl
.
getIndex
(
indexName
,
tableName
);
NdbIndexImpl
*
i
=
m_impl
.
getIndex
(
indexName
,
tableName
);
if
(
i
)
if
(
i
)
...
@@ -782,7 +784,7 @@ NdbDictionary::Dictionary::removeCachedIndex(const char * indexName,
...
@@ -782,7 +784,7 @@ NdbDictionary::Dictionary::removeCachedIndex(const char * indexName,
const
NdbDictionary
::
Table
*
const
NdbDictionary
::
Table
*
NdbDictionary
::
Dictionary
::
getIndexTable
(
const
char
*
indexName
,
NdbDictionary
::
Dictionary
::
getIndexTable
(
const
char
*
indexName
,
const
char
*
tableName
)
const
char
*
tableName
)
const
{
{
NdbIndexImpl
*
i
=
m_impl
.
getIndex
(
indexName
,
tableName
);
NdbIndexImpl
*
i
=
m_impl
.
getIndex
(
indexName
,
tableName
);
NdbTableImpl
*
t
=
m_impl
.
getTable
(
tableName
);
NdbTableImpl
*
t
=
m_impl
.
getTable
(
tableName
);
...
...
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