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
96413a44
Commit
96413a44
authored
Nov 18, 2005
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using new error code HA_ERR_TABLE_DEF_CHANGED to signal wrong schema version of table
parent
8ca38a90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
mysql-test/t/ndb_alter_table.test
mysql-test/t/ndb_alter_table.test
+1
-1
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+1
-2
No files found.
mysql-test/t/ndb_alter_table.test
View file @
96413a44
...
@@ -152,7 +152,7 @@ connection server1;
...
@@ -152,7 +152,7 @@ connection server1;
alter
table
t1
drop
index
c
;
alter
table
t1
drop
index
c
;
connection
server2
;
connection
server2
;
# This should fail since index information is not automatically refreshed
# This should fail since index information is not automatically refreshed
--
error
1
105
--
error
1
412
select
*
from
t1
where
b
=
'two'
;
select
*
from
t1
where
b
=
'two'
;
select
*
from
t1
where
b
=
'two'
;
select
*
from
t1
where
b
=
'two'
;
connection
server1
;
connection
server1
;
...
...
sql/ha_ndbcluster.cc
View file @
96413a44
...
@@ -3342,8 +3342,7 @@ int ha_ndbcluster::external_lock(THD *thd, int lock_type)
...
@@ -3342,8 +3342,7 @@ int ha_ndbcluster::external_lock(THD *thd, int lock_type)
/*
/*
The table has been altered, caller has to retry
The table has been altered, caller has to retry
*/
*/
NdbError
err
=
ndb
->
getNdbError
(
NDB_INVALID_SCHEMA_OBJECT
);
DBUG_RETURN
(
my_errno
=
HA_ERR_TABLE_DEF_CHANGED
);
DBUG_RETURN
(
ndb_to_mysql_error
(
&
err
));
}
}
m_table_info
=
tab_info
;
m_table_info
=
tab_info
;
}
}
...
...
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