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
4016096b
Commit
4016096b
authored
Mar 04, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql into serg.mysql.com:/usr/home/serg/Abk/mysql
parents
374ea106
8529b744
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
.bzrignore
.bzrignore
+2
-0
mysql-test/r/delete.result
mysql-test/r/delete.result
+4
-0
mysql-test/t/delete.test
mysql-test/t/delete.test
+20
-0
sql/field.h
sql/field.h
+1
-1
No files found.
.bzrignore
View file @
4016096b
...
...
@@ -333,3 +333,5 @@ innobase/autom4te.cache/requests
innobase/autom4te.cache/traces.0
innobase/stamp-h1
stamp-h1
configure.lineno
innobase/configure.lineno
mysql-test/r/delete.result
0 → 100644
View file @
4016096b
bool not_null misc
NULL c 6
NULL d 7
bool not_null misc
mysql-test/t/delete.test
View file @
4016096b
...
...
@@ -35,3 +35,23 @@ create table t1 (a bigint not null, primary key (a,a,a,a,a,a,a,a,a,a));
insert
into
t1
values
(
2
),(
4
),(
6
),(
8
),(
10
),(
12
),(
14
),(
16
),(
18
),(
20
),(
22
),(
24
),(
26
),(
23
),(
27
);
delete
from
t1
where
a
=
27
;
drop
table
t1
;
#
# CHAR(0) bug - not actually DELETE bug, but anyway...
#
CREATE
TABLE
t1
(
bool
char
(
0
)
default
NULL
,
not_null
varchar
(
20
)
binary
NOT
NULL
default
''
,
misc
integer
not
null
,
PRIMARY
KEY
(
not_null
)
)
TYPE
=
MyISAM
;
INSERT
INTO
t1
VALUES
(
NULL
,
'a'
,
4
),
(
NULL
,
'b'
,
5
),
(
NULL
,
'c'
,
6
),
(
NULL
,
'd'
,
7
);
select
*
from
t1
where
misc
>
5
and
bool
is
null
;
delete
from
t1
where
misc
>
5
and
bool
is
null
;
select
*
from
t1
where
misc
>
5
and
bool
is
null
;
drop
table
t1
;
sql/field.h
View file @
4016096b
...
...
@@ -64,7 +64,7 @@ class Field {
virtual
String
*
val_str
(
String
*
,
String
*
)
=
0
;
virtual
Item_result
result_type
()
const
=
0
;
virtual
Item_result
cmp_type
()
const
{
return
result_type
();
}
bool
eq
(
Field
*
field
)
{
return
ptr
==
field
->
ptr
;
}
bool
eq
(
Field
*
field
)
{
return
ptr
==
field
->
ptr
&&
null_ptr
==
field
->
null_ptr
;
}
virtual
bool
eq_def
(
Field
*
field
);
virtual
uint32
pack_length
()
const
{
return
(
uint32
)
field_length
;
}
virtual
void
reset
(
void
)
{
bzero
(
ptr
,
pack_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