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
32aac8dc
Commit
32aac8dc
authored
Jul 23, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug with INSERT .. SET db_name.tbl_name.col_name=''
parent
b42ca98d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
mysql-test/r/insert_set.result
mysql-test/r/insert_set.result
+6
-0
mysql-test/t/insert_set.test
mysql-test/t/insert_set.test
+10
-0
sql/sql_base.cc
sql/sql_base.cc
+1
-1
No files found.
mysql-test/r/insert_set.result
0 → 100644
View file @
32aac8dc
drop database if exists a;
create database a;
use a;
create table b (c int);
insert into a.b set a.b.c = '1';
drop database a;
mysql-test/t/insert_set.test
0 → 100644
View file @
32aac8dc
#
# Test of mysqld crash with fully qualified column names
#
drop
database
if
exists
a
;
create
database
a
;
use
a
;
create
table
b
(
c
int
);
insert
into
a
.
b
set
a
.
b
.
c
=
'1'
;
drop
database
a
;
sql/sql_base.cc
View file @
32aac8dc
...
...
@@ -1608,7 +1608,7 @@ find_field_in_tables(THD *thd,Item_field *item,TABLE_LIST *tables)
for
(;
tables
;
tables
=
tables
->
next
)
{
if
(
!
strcmp
(
tables
->
name
,
table_name
)
&&
(
!
db
||
!
strcmp
(
db
,
tables
->
db
)))
(
!
db
||
!
tables
->
db
||
!
strcmp
(
db
,
tables
->
db
)))
{
found_table
=
1
;
Field
*
find
=
find_field_in_table
(
thd
,
tables
->
table
,
name
,
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