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
1f0d4704
Commit
1f0d4704
authored
Jul 03, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into narttu.mysql.fi:/my/mysql-4.0
parents
25cd10cb
8d7eb4a0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
0 deletions
+21
-0
mysql-test/r/alias.result
mysql-test/r/alias.result
+1
-0
mysql-test/r/handler.result
mysql-test/r/handler.result
+6
-0
mysql-test/t/alias.test
mysql-test/t/alias.test
+2
-0
mysql-test/t/handler.test
mysql-test/t/handler.test
+10
-0
sql/sql_handler.cc
sql/sql_handler.cc
+2
-0
No files found.
mysql-test/r/alias.result
View file @
1f0d4704
...
...
@@ -70,3 +70,4 @@ INSERT INTO t1 VALUES ('40004712','000001','0020',0);
UPDATE t1 SET t1.xstatus_vor = Greatest(t1.xstatus_vor,1) WHERE t1.aufnr =
"40004712" AND t1.plnfl = "000001" AND t1.vornr > "0010" ORDER BY t1.vornr
ASC LIMIT 1;
drop table t1;
mysql-test/r/handler.result
View file @
1f0d4704
...
...
@@ -146,3 +146,9 @@ alter table t1 type=MyISAM;
handler t2 read first;
Unknown table 't2' in HANDLER
drop table t1;
create table t1(a int, index(a));
insert into t1 values (1), (2), (3);
handler t1 open;
handler t1 read a=(W);
Unknown column 'W' in 'field list'
drop table t1;
mysql-test/t/alias.test
View file @
1f0d4704
...
...
@@ -81,3 +81,5 @@ INSERT INTO t1 VALUES ('40004712','000001','0020',0);
UPDATE
t1
SET
t1
.
xstatus_vor
=
Greatest
(
t1
.
xstatus_vor
,
1
)
WHERE
t1
.
aufnr
=
"40004712"
AND
t1
.
plnfl
=
"000001"
AND
t1
.
vornr
>
"0010"
ORDER
BY
t1
.
vornr
ASC
LIMIT
1
;
drop
table
t1
;
mysql-test/t/handler.test
View file @
1f0d4704
...
...
@@ -80,3 +80,13 @@ alter table t1 type=MyISAM;
handler
t2
read
first
;
drop
table
t1
;
#
#test for #751
#
create
table
t1
(
a
int
,
index
(
a
));
insert
into
t1
values
(
1
),
(
2
),
(
3
);
handler
t1
open
;
--
error
1054
handler
t1
read
a
=
(
W
);
drop
table
t1
;
sql/sql_handler.cc
View file @
1f0d4704
...
...
@@ -193,6 +193,8 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
Item
*
item
;
for
(
key_len
=
0
;
(
item
=
it_ke
++
)
;
key_part
++
)
{
if
(
item
->
fix_fields
(
thd
,
tables
))
return
-
1
;
item
->
save_in_field
(
key_part
->
field
,
1
);
key_len
+=
key_part
->
store_length
;
}
...
...
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