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
4a525b3f
Commit
4a525b3f
authored
Jan 24, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Manually merged
sql/sql_base.cc: Auto merged
parents
52ff597a
e14c9c5d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
mysql-test/r/update.result
mysql-test/r/update.result
+4
-0
mysql-test/t/update.test
mysql-test/t/update.test
+8
-0
sql/sql_base.cc
sql/sql_base.cc
+1
-0
No files found.
mysql-test/r/update.result
View file @
4a525b3f
...
...
@@ -358,3 +358,7 @@ update t2,t1 set f1=3,f2=3 where f1=f2 and f1=1;
affected rows: 3
info: Rows matched: 3 Changed: 3 Warnings: 0
drop table t1,t2;
create table t1(f1 int, `*f2` int);
insert into t1 values (1,1);
update t1 set `*f2`=1;
drop table t1;
mysql-test/t/update.test
View file @
4a525b3f
...
...
@@ -287,4 +287,12 @@ update t1 set f1=1 where f1=3;
update
t2
,
t1
set
f1
=
3
,
f2
=
3
where
f1
=
f2
and
f1
=
1
;
--
disable_info
drop
table
t1
,
t2
;
#
# Bug #16510 Updating field named like '*name' caused server crash
#
create
table
t1
(
f1
int
,
`*f2`
int
);
insert
into
t1
values
(
1
,
1
);
update
t1
set
`*f2`
=
1
;
drop
table
t1
;
# End of 4.1 tests
sql/sql_base.cc
View file @
4a525b3f
...
...
@@ -2390,6 +2390,7 @@ int setup_wild(THD *thd, TABLE_LIST *tables, List<Item> &fields,
if
(
item
->
type
()
==
Item
::
FIELD_ITEM
&&
((
Item_field
*
)
item
)
->
field_name
&&
((
Item_field
*
)
item
)
->
field_name
[
0
]
==
'*'
&&
((
Item_field
*
)
item
)
->
field_name
[
1
]
==
0
&&
!
((
Item_field
*
)
item
)
->
field
)
{
uint
elem
=
fields
.
elements
;
...
...
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