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
68047f7f
Commit
68047f7f
authored
Aug 29, 2007
by
davi@moksha.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge moksha.local:/Users/davi/mysql/push/bugs/old/30632-5.0
into moksha.local:/Users/davi/mysql/push/bugs/30632-5.1
parents
cb7486b4
77d78a88
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
3 deletions
+35
-3
mysql-test/include/handler.inc
mysql-test/include/handler.inc
+19
-0
mysql-test/r/handler_myisam.result
mysql-test/r/handler_myisam.result
+13
-0
sql/sql_handler.cc
sql/sql_handler.cc
+3
-3
No files found.
mysql-test/include/handler.inc
View file @
68047f7f
...
@@ -479,3 +479,22 @@ handler t1 open;
...
@@ -479,3 +479,22 @@ handler t1 open;
--
echo
-->
client
1
--
echo
-->
client
1
connection
default
;
connection
default
;
drop
table
t1
;
drop
table
t1
;
#
# Bug#30632 HANDLER read failure causes hang
#
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
create
table
t1
(
a
int
);
handler
t1
open
as
t1_alias
;
--
error
1176
handler
t1_alias
read
a
next
;
--
error
1054
handler
t1_alias
READ
a
next
where
inexistent
>
0
;
--
error
1176
handler
t1_alias
read
a
next
;
--
error
1054
handler
t1_alias
READ
a
next
where
inexistent
>
0
;
handler
t1_alias
close
;
drop
table
t1
;
mysql-test/r/handler_myisam.result
View file @
68047f7f
...
@@ -522,3 +522,16 @@ handler t1 open;
...
@@ -522,3 +522,16 @@ handler t1 open;
ERROR HY000: Table storage engine for 't1' doesn't have this option
ERROR HY000: Table storage engine for 't1' doesn't have this option
--> client 1
--> client 1
drop table t1;
drop table t1;
drop table if exists t1;
create table t1 (a int);
handler t1 open as t1_alias;
handler t1_alias read a next;
ERROR HY000: Key 'a' doesn't exist in table 't1_alias'
handler t1_alias READ a next where inexistent > 0;
ERROR 42S22: Unknown column 'inexistent' in 'field list'
handler t1_alias read a next;
ERROR HY000: Key 'a' doesn't exist in table 't1_alias'
handler t1_alias READ a next where inexistent > 0;
ERROR 42S22: Unknown column 'inexistent' in 'field list'
handler t1_alias close;
drop table t1;
sql/sql_handler.cc
View file @
68047f7f
...
@@ -444,7 +444,7 @@ bool mysql_ha_read(THD *thd, TABLE_LIST *tables,
...
@@ -444,7 +444,7 @@ bool mysql_ha_read(THD *thd, TABLE_LIST *tables,
cond
->
cleanup
();
// File was reopened
cond
->
cleanup
();
// File was reopened
if
((
!
cond
->
fixed
&&
if
((
!
cond
->
fixed
&&
cond
->
fix_fields
(
thd
,
&
cond
))
||
cond
->
check_cols
(
1
))
cond
->
fix_fields
(
thd
,
&
cond
))
||
cond
->
check_cols
(
1
))
goto
err
0
;
goto
err
;
}
}
if
(
keyname
)
if
(
keyname
)
...
@@ -452,13 +452,13 @@ bool mysql_ha_read(THD *thd, TABLE_LIST *tables,
...
@@ -452,13 +452,13 @@ bool mysql_ha_read(THD *thd, TABLE_LIST *tables,
if
((
keyno
=
find_type
(
keyname
,
&
table
->
s
->
keynames
,
1
+
2
)
-
1
)
<
0
)
if
((
keyno
=
find_type
(
keyname
,
&
table
->
s
->
keynames
,
1
+
2
)
-
1
)
<
0
)
{
{
my_error
(
ER_KEY_DOES_NOT_EXITS
,
MYF
(
0
),
keyname
,
tables
->
alias
);
my_error
(
ER_KEY_DOES_NOT_EXITS
,
MYF
(
0
),
keyname
,
tables
->
alias
);
goto
err
0
;
goto
err
;
}
}
}
}
if
(
insert_fields
(
thd
,
&
thd
->
lex
->
select_lex
.
context
,
if
(
insert_fields
(
thd
,
&
thd
->
lex
->
select_lex
.
context
,
tables
->
db
,
tables
->
alias
,
&
it
,
0
))
tables
->
db
,
tables
->
alias
,
&
it
,
0
))
goto
err
0
;
goto
err
;
protocol
->
send_fields
(
&
list
,
Protocol
::
SEND_NUM_ROWS
|
Protocol
::
SEND_EOF
);
protocol
->
send_fields
(
&
list
,
Protocol
::
SEND_NUM_ROWS
|
Protocol
::
SEND_EOF
);
...
...
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