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
d3f3cc61
Commit
d3f3cc61
authored
Jun 07, 2005
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Many files:
Fixed bug #9899: erronious NOT_NULL flag for some attributes in the EXPLAIN table.
parent
6cc77486
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
24 deletions
+28
-24
mysql-test/r/ps_1general.result
mysql-test/r/ps_1general.result
+6
-6
mysql-test/r/ps_2myisam.result
mysql-test/r/ps_2myisam.result
+3
-3
mysql-test/r/ps_3innodb.result
mysql-test/r/ps_3innodb.result
+3
-3
mysql-test/r/ps_4heap.result
mysql-test/r/ps_4heap.result
+3
-3
mysql-test/r/ps_5merge.result
mysql-test/r/ps_5merge.result
+6
-6
sql/sql_class.cc
sql/sql_class.cc
+7
-3
No files found.
mysql-test/r/ps_1general.result
View file @
d3f3cc61
...
@@ -468,13 +468,13 @@ execute stmt1;
...
@@ -468,13 +468,13 @@ execute stmt1;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def id 8 3 1 N 32929 0 63
def id 8 3 1 N 32929 0 63
def select_type 253 19 6 N 1 31 8
def select_type 253 19 6 N 1 31 8
def table 253 64 2
N 1
31 8
def table 253 64 2
Y 0
31 8
def type 253 10 3
N 1
31 8
def type 253 10 3
Y 0
31 8
def possible_keys 253 4096 0 Y 0 31 8
def possible_keys 253 4096 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key_len 8 3 0 Y 32928 0 63
def key_len 8 3 0 Y 32928 0 63
def ref 253 1024 0 Y 0 31 8
def ref 253 1024 0 Y 0 31 8
def rows 8 10 1
N 32929
0 63
def rows 8 10 1
Y 32928
0 63
def Extra 253 255 14 N 1 31 8
def Extra 253 255 14 N 1 31 8
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using filesort
1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using filesort
...
@@ -484,13 +484,13 @@ execute stmt1 using @arg00;
...
@@ -484,13 +484,13 @@ execute stmt1 using @arg00;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def id 8 3 1 N 32929 0 63
def id 8 3 1 N 32929 0 63
def select_type 253 19 6 N 1 31 8
def select_type 253 19 6 N 1 31 8
def table 253 64 2
N 1
31 8
def table 253 64 2
Y 0
31 8
def type 253 10 5
N 1
31 8
def type 253 10 5
Y 0
31 8
def possible_keys 253 4096 7 Y 0 31 8
def possible_keys 253 4096 7 Y 0 31 8
def key 253 64 7 Y 0 31 8
def key 253 64 7 Y 0 31 8
def key_len 8 3 1 Y 32928 0 63
def key_len 8 3 1 Y 32928 0 63
def ref 253 1024 0 Y 0 31 8
def ref 253 1024 0 Y 0 31 8
def rows 8 10 1
N 32929
0 63
def rows 8 10 1
Y 32928
0 63
def Extra 253 255 27 N 1 31 8
def Extra 253 255 27 N 1 31 8
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 Using where; Using filesort
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 Using where; Using filesort
...
...
mysql-test/r/ps_2myisam.result
View file @
d3f3cc61
...
@@ -1151,13 +1151,13 @@ execute stmt1;
...
@@ -1151,13 +1151,13 @@ execute stmt1;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def id 8 3 1 N 32929 0 63
def id 8 3 1 N 32929 0 63
def select_type 253 19 6 N 1 31 8
def select_type 253 19 6 N 1 31 8
def table 253 64 2
N 1
31 8
def table 253 64 2
Y 0
31 8
def type 253 10 3
N 1
31 8
def type 253 10 3
Y 0
31 8
def possible_keys 253 4096 0 Y 0 31 8
def possible_keys 253 4096 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key_len 8 3 0 Y 32928 0 63
def key_len 8 3 0 Y 32928 0 63
def ref 253 1024 0 Y 0 31 8
def ref 253 1024 0 Y 0 31 8
def rows 8 10 1
N 32929
0 63
def rows 8 10 1
Y 32928
0 63
def Extra 253 255 0 N 1 31 8
def Extra 253 255 0 N 1 31 8
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t9 ALL NULL NULL NULL NULL 2
1 SIMPLE t9 ALL NULL NULL NULL NULL 2
...
...
mysql-test/r/ps_3innodb.result
View file @
d3f3cc61
...
@@ -1151,13 +1151,13 @@ execute stmt1;
...
@@ -1151,13 +1151,13 @@ execute stmt1;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def id 8 3 1 N 32929 0 63
def id 8 3 1 N 32929 0 63
def select_type 253 19 6 N 1 31 8
def select_type 253 19 6 N 1 31 8
def table 253 64 2
N 1
31 8
def table 253 64 2
Y 0
31 8
def type 253 10 3
N 1
31 8
def type 253 10 3
Y 0
31 8
def possible_keys 253 4096 0 Y 0 31 8
def possible_keys 253 4096 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key_len 8 3 0 Y 32928 0 63
def key_len 8 3 0 Y 32928 0 63
def ref 253 1024 0 Y 0 31 8
def ref 253 1024 0 Y 0 31 8
def rows 8 10 1
N 32929
0 63
def rows 8 10 1
Y 32928
0 63
def Extra 253 255 0 N 1 31 8
def Extra 253 255 0 N 1 31 8
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t9 ALL NULL NULL NULL NULL 2
1 SIMPLE t9 ALL NULL NULL NULL NULL 2
...
...
mysql-test/r/ps_4heap.result
View file @
d3f3cc61
...
@@ -1152,13 +1152,13 @@ execute stmt1;
...
@@ -1152,13 +1152,13 @@ execute stmt1;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def id 8 3 1 N 32929 0 63
def id 8 3 1 N 32929 0 63
def select_type 253 19 6 N 1 31 8
def select_type 253 19 6 N 1 31 8
def table 253 64 2
N 1
31 8
def table 253 64 2
Y 0
31 8
def type 253 10 3
N 1
31 8
def type 253 10 3
Y 0
31 8
def possible_keys 253 4096 0 Y 0 31 8
def possible_keys 253 4096 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key_len 8 3 0 Y 32928 0 63
def key_len 8 3 0 Y 32928 0 63
def ref 253 1024 0 Y 0 31 8
def ref 253 1024 0 Y 0 31 8
def rows 8 10 1
N 32929
0 63
def rows 8 10 1
Y 32928
0 63
def Extra 253 255 0 N 1 31 8
def Extra 253 255 0 N 1 31 8
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t9 ALL NULL NULL NULL NULL 2
1 SIMPLE t9 ALL NULL NULL NULL NULL 2
...
...
mysql-test/r/ps_5merge.result
View file @
d3f3cc61
...
@@ -1194,13 +1194,13 @@ execute stmt1;
...
@@ -1194,13 +1194,13 @@ execute stmt1;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def id 8 3 1 N 32929 0 63
def id 8 3 1 N 32929 0 63
def select_type 253 19 6 N 1 31 8
def select_type 253 19 6 N 1 31 8
def table 253 64 2
N 1
31 8
def table 253 64 2
Y 0
31 8
def type 253 10 3
N 1
31 8
def type 253 10 3
Y 0
31 8
def possible_keys 253 4096 0 Y 0 31 8
def possible_keys 253 4096 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key_len 8 3 0 Y 32928 0 63
def key_len 8 3 0 Y 32928 0 63
def ref 253 1024 0 Y 0 31 8
def ref 253 1024 0 Y 0 31 8
def rows 8 10 1
N 32929
0 63
def rows 8 10 1
Y 32928
0 63
def Extra 253 255 0 N 1 31 8
def Extra 253 255 0 N 1 31 8
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t9 ALL NULL NULL NULL NULL 2
1 SIMPLE t9 ALL NULL NULL NULL NULL 2
...
@@ -4208,13 +4208,13 @@ execute stmt1;
...
@@ -4208,13 +4208,13 @@ execute stmt1;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def id 8 3 1 N 32929 0 63
def id 8 3 1 N 32929 0 63
def select_type 253 19 6 N 1 31 8
def select_type 253 19 6 N 1 31 8
def table 253 64 2
N 1
31 8
def table 253 64 2
Y 0
31 8
def type 253 10 3
N 1
31 8
def type 253 10 3
Y 0
31 8
def possible_keys 253 4096 0 Y 0 31 8
def possible_keys 253 4096 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key 253 64 0 Y 0 31 8
def key_len 8 3 0 Y 32928 0 63
def key_len 8 3 0 Y 32928 0 63
def ref 253 1024 0 Y 0 31 8
def ref 253 1024 0 Y 0 31 8
def rows 8 10 1
N 32929
0 63
def rows 8 10 1
Y 32928
0 63
def Extra 253 255 0 N 1 31 8
def Extra 253 255 0 N 1 31 8
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t9 ALL NULL NULL NULL NULL 2
1 SIMPLE t9 ALL NULL NULL NULL NULL 2
...
...
sql/sql_class.cc
View file @
d3f3cc61
...
@@ -667,8 +667,10 @@ int THD::send_explain_fields(select_result *result)
...
@@ -667,8 +667,10 @@ int THD::send_explain_fields(select_result *result)
CHARSET_INFO
*
cs
=
system_charset_info
;
CHARSET_INFO
*
cs
=
system_charset_info
;
field_list
.
push_back
(
new
Item_return_int
(
"id"
,
3
,
MYSQL_TYPE_LONGLONG
));
field_list
.
push_back
(
new
Item_return_int
(
"id"
,
3
,
MYSQL_TYPE_LONGLONG
));
field_list
.
push_back
(
new
Item_empty_string
(
"select_type"
,
19
,
cs
));
field_list
.
push_back
(
new
Item_empty_string
(
"select_type"
,
19
,
cs
));
field_list
.
push_back
(
new
Item_empty_string
(
"table"
,
NAME_LEN
,
cs
));
field_list
.
push_back
(
item
=
new
Item_empty_string
(
"table"
,
NAME_LEN
,
cs
));
field_list
.
push_back
(
new
Item_empty_string
(
"type"
,
10
,
cs
));
item
->
maybe_null
=
1
;
field_list
.
push_back
(
item
=
new
Item_empty_string
(
"type"
,
10
,
cs
));
item
->
maybe_null
=
1
;
field_list
.
push_back
(
item
=
new
Item_empty_string
(
"possible_keys"
,
field_list
.
push_back
(
item
=
new
Item_empty_string
(
"possible_keys"
,
NAME_LEN
*
MAX_KEY
,
cs
));
NAME_LEN
*
MAX_KEY
,
cs
));
item
->
maybe_null
=
1
;
item
->
maybe_null
=
1
;
...
@@ -680,7 +682,9 @@ int THD::send_explain_fields(select_result *result)
...
@@ -680,7 +682,9 @@ int THD::send_explain_fields(select_result *result)
field_list
.
push_back
(
item
=
new
Item_empty_string
(
"ref"
,
field_list
.
push_back
(
item
=
new
Item_empty_string
(
"ref"
,
NAME_LEN
*
MAX_REF_PARTS
,
cs
));
NAME_LEN
*
MAX_REF_PARTS
,
cs
));
item
->
maybe_null
=
1
;
item
->
maybe_null
=
1
;
field_list
.
push_back
(
new
Item_return_int
(
"rows"
,
10
,
MYSQL_TYPE_LONGLONG
));
field_list
.
push_back
(
item
=
new
Item_return_int
(
"rows"
,
10
,
MYSQL_TYPE_LONGLONG
));
item
->
maybe_null
=
1
;
field_list
.
push_back
(
new
Item_empty_string
(
"Extra"
,
255
,
cs
));
field_list
.
push_back
(
new
Item_empty_string
(
"Extra"
,
255
,
cs
));
return
(
result
->
send_fields
(
field_list
,
1
));
return
(
result
->
send_fields
(
field_list
,
1
));
}
}
...
...
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