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
94d21618
Commit
94d21618
authored
May 24, 2006
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #16997 Table rename that changes database does not rename indexes: merge
parent
cdccc772
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
16 deletions
+18
-16
ndb/include/ndbapi/NdbDictionary.hpp
ndb/include/ndbapi/NdbDictionary.hpp
+15
-14
ndb/src/ndbapi/NdbDictionary.cpp
ndb/src/ndbapi/NdbDictionary.cpp
+1
-1
ndb/src/ndbapi/NdbDictionaryImpl.hpp
ndb/src/ndbapi/NdbDictionaryImpl.hpp
+2
-1
No files found.
ndb/include/ndbapi/NdbDictionary.hpp
View file @
94d21618
...
@@ -1182,6 +1182,15 @@ public:
...
@@ -1182,6 +1182,15 @@ public:
const
Index
*
getIndex
(
const
char
*
indexName
,
const
Index
*
getIndex
(
const
char
*
indexName
,
const
char
*
tableName
)
const
;
const
char
*
tableName
)
const
;
/**
* Get index with given name, NULL if undefined
* @param indexName Name of index to get.
* @param Table instance table that index belongs to.
* @return index if successful, otherwise 0.
*/
const
Index
*
getIndex
(
const
char
*
indexName
,
const
Table
&
table
)
const
;
/**
/**
* Fetch list of indexes of given table.
* Fetch list of indexes of given table.
* @param list Reference to list where to store the listed indexes
* @param list Reference to list where to store the listed indexes
...
@@ -1301,23 +1310,15 @@ public:
...
@@ -1301,23 +1310,15 @@ public:
*/
*/
int
dropIndex
(
const
char
*
indexName
,
int
dropIndex
(
const
char
*
indexName
,
const
char
*
tableName
);
const
char
*
tableName
);
/**
* Get index with given name, NULL if undefined
* @param indexName Name of index to get.
* @param tableName Name of table that index belongs to.
* @return index if successful, otherwise 0.
*/
const
Index
*
getIndex
(
const
char
*
indexName
,
const
char
*
tableName
);
/**
/**
* Get index with given name, NULL if undefined
* Drop index the defined Index instance
* @param indexName Name of index to get.
* @param Index to drop
* @param Table instance table that index belongs to.
* @return 0 if successful otherwise -1.
* @return index if successful, otherwise 0.
*/
*/
const
Index
*
getIndex
(
const
char
*
indexName
,
int
dropIndex
(
const
Index
&
);
const
Table
&
table
);
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
/**
/**
* Invalidate cached index object
* Invalidate cached index object
...
...
ndb/src/ndbapi/NdbDictionary.cpp
View file @
94d21618
...
@@ -818,7 +818,7 @@ NdbDictionary::Dictionary::getIndex(const char * indexName,
...
@@ -818,7 +818,7 @@ NdbDictionary::Dictionary::getIndex(const char * indexName,
const
NdbDictionary
::
Index
*
const
NdbDictionary
::
Index
*
NdbDictionary
::
Dictionary
::
getIndex
(
const
char
*
indexName
,
NdbDictionary
::
Dictionary
::
getIndex
(
const
char
*
indexName
,
const
Table
&
t
)
const
Table
&
t
)
const
{
{
NdbIndexImpl
*
i
=
m_impl
.
getIndex
(
indexName
,
&
NdbTableImpl
::
getImpl
(
t
));
NdbIndexImpl
*
i
=
m_impl
.
getIndex
(
indexName
,
&
NdbTableImpl
::
getImpl
(
t
));
if
(
i
)
if
(
i
)
...
...
ndb/src/ndbapi/NdbDictionaryImpl.hpp
View file @
94d21618
...
@@ -702,6 +702,7 @@ inline
...
@@ -702,6 +702,7 @@ inline
NdbIndexImpl
*
NdbIndexImpl
*
NdbDictionaryImpl
::
getIndex
(
const
char
*
index_name
,
NdbDictionaryImpl
::
getIndex
(
const
char
*
index_name
,
const
char
*
table_name
)
const
char
*
table_name
)
{
return
getIndex
(
index_name
,
(
table_name
)
?
getTable
(
table_name
)
:
NULL
);
return
getIndex
(
index_name
,
(
table_name
)
?
getTable
(
table_name
)
:
NULL
);
}
}
...
@@ -710,7 +711,7 @@ NdbIndexImpl *
...
@@ -710,7 +711,7 @@ NdbIndexImpl *
NdbDictionaryImpl
::
getIndex
(
const
char
*
index_name
,
NdbDictionaryImpl
::
getIndex
(
const
char
*
index_name
,
NdbTableImpl
*
table
)
NdbTableImpl
*
table
)
{
{
if
(
table
||
m_ndb
.
usingFullyQualifiedNames
())
{
if
(
table
||
m_ndb
.
usingFullyQualifiedNames
())
{
{
const
BaseString
internal_indexname
(
const
BaseString
internal_indexname
(
(
table
)
(
table
)
...
...
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