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
05fe0782
Commit
05fe0782
authored
Mar 23, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
parents
a3762d79
564e40da
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
2 deletions
+38
-2
mysql-test/README
mysql-test/README
+1
-1
mysql-test/r/variables.result
mysql-test/r/variables.result
+8
-0
mysql-test/t/variables.test
mysql-test/t/variables.test
+9
-0
sql/ha_innodb.cc
sql/ha_innodb.cc
+18
-0
sql/sql_class.cc
sql/sql_class.cc
+1
-0
strings/ctype-utf8.c
strings/ctype-utf8.c
+1
-1
No files found.
mysql-test/README
View file @
05fe0782
...
@@ -17,7 +17,7 @@ http://dev.mysql.com/doc/mysql/en/MySQL_test_suite.html
...
@@ -17,7 +17,7 @@ http://dev.mysql.com/doc/mysql/en/MySQL_test_suite.html
You can create your own test cases. To create a test case:
You can create your own test cases. To create a test case:
xe
a
macs t/test_case_name.test
xemacs t/test_case_name.test
in the file, put a set of SQL commands that will create some tables,
in the file, put a set of SQL commands that will create some tables,
load test data, run some queries to manipulate it.
load test data, run some queries to manipulate it.
...
...
mysql-test/r/variables.result
View file @
05fe0782
...
@@ -520,3 +520,11 @@ SHOW VARIABLES LIKE 'table_cache';
...
@@ -520,3 +520,11 @@ SHOW VARIABLES LIKE 'table_cache';
Variable_name Value
Variable_name Value
table_cache 1
table_cache 1
SET GLOBAL table_cache=DEFAULT;
SET GLOBAL table_cache=DEFAULT;
create table t1 (a int);
select a into @x from t1;
Warnings:
Warning 1329 No data to FETCH
show warnings;
Level Code Message
Warning 1329 No data to FETCH
drop table t1;
mysql-test/t/variables.test
View file @
05fe0782
...
@@ -388,3 +388,12 @@ SHOW VARIABLES LIKE 'MYISAM_DATA_POINTER_SIZE';
...
@@ -388,3 +388,12 @@ SHOW VARIABLES LIKE 'MYISAM_DATA_POINTER_SIZE';
SET
GLOBAL
table_cache
=-
1
;
SET
GLOBAL
table_cache
=-
1
;
SHOW
VARIABLES
LIKE
'table_cache'
;
SHOW
VARIABLES
LIKE
'table_cache'
;
SET
GLOBAL
table_cache
=
DEFAULT
;
SET
GLOBAL
table_cache
=
DEFAULT
;
#
# Bug#6282 Packet error with SELECT INTO
#
create
table
t1
(
a
int
);
select
a
into
@
x
from
t1
;
show
warnings
;
drop
table
t1
;
sql/ha_innodb.cc
View file @
05fe0782
...
@@ -2440,6 +2440,13 @@ ha_innobase::store_key_val_for_row(
...
@@ -2440,6 +2440,13 @@ ha_innobase::store_key_val_for_row(
+
(
ulint
)
get_field_offset
(
table
,
field
)),
+
(
ulint
)
get_field_offset
(
table
,
field
)),
lenlen
);
lenlen
);
/* In a column prefix index, we may need to truncate
the stored value: */
if
(
len
>
key_part
->
length
)
{
len
=
key_part
->
length
;
}
/* The length in a key value is always stored in 2
/* The length in a key value is always stored in 2
bytes */
bytes */
...
@@ -2476,6 +2483,11 @@ ha_innobase::store_key_val_for_row(
...
@@ -2476,6 +2483,11 @@ ha_innobase::store_key_val_for_row(
ut_a
(
get_field_offset
(
table
,
field
)
ut_a
(
get_field_offset
(
table
,
field
)
==
key_part
->
offset
);
==
key_part
->
offset
);
/* All indexes on BLOB and TEXT are column prefix
indexes, and we may need to truncate the data to be
stored in the kay value: */
if
(
blob_len
>
key_part
->
length
)
{
if
(
blob_len
>
key_part
->
length
)
{
blob_len
=
key_part
->
length
;
blob_len
=
key_part
->
length
;
}
}
...
@@ -2494,11 +2506,17 @@ ha_innobase::store_key_val_for_row(
...
@@ -2494,11 +2506,17 @@ ha_innobase::store_key_val_for_row(
buff
+=
key_part
->
length
;
buff
+=
key_part
->
length
;
}
else
{
}
else
{
/* Here we handle all other data types except the
true VARCHAR, BLOB and TEXT. Note that the column
value we store may be also in a column prefix
index. */
if
(
is_null
)
{
if
(
is_null
)
{
buff
+=
key_part
->
length
;
buff
+=
key_part
->
length
;
continue
;
continue
;
}
}
memcpy
(
buff
,
record
+
key_part
->
offset
,
memcpy
(
buff
,
record
+
key_part
->
offset
,
key_part
->
length
);
key_part
->
length
);
buff
+=
key_part
->
length
;
buff
+=
key_part
->
length
;
...
...
sql/sql_class.cc
View file @
05fe0782
...
@@ -193,6 +193,7 @@ THD::THD()
...
@@ -193,6 +193,7 @@ THD::THD()
variables
.
pseudo_thread_id
=
0
;
variables
.
pseudo_thread_id
=
0
;
one_shot_set
=
0
;
one_shot_set
=
0
;
file_id
=
0
;
file_id
=
0
;
query_id
=
0
;
warn_id
=
0
;
warn_id
=
0
;
db_charset
=
global_system_variables
.
collation_database
;
db_charset
=
global_system_variables
.
collation_database
;
bzero
(
ha_data
,
sizeof
(
ha_data
));
bzero
(
ha_data
,
sizeof
(
ha_data
));
...
...
strings/ctype-utf8.c
View file @
05fe0782
...
@@ -2276,7 +2276,7 @@ static int my_strnxfrm_utf8(CHARSET_INFO *cs,
...
@@ -2276,7 +2276,7 @@ static int my_strnxfrm_utf8(CHARSET_INFO *cs,
}
}
if
(
dst
<
de
)
/* Clear the last byte, if "dstlen" was an odd number */
if
(
dst
<
de
)
/* Clear the last byte, if "dstlen" was an odd number */
*
d
e
=
0x00
;
*
d
st
=
0x00
;
return
dstlen
;
return
dstlen
;
}
}
...
...
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