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
c7532a69
Commit
c7532a69
authored
Nov 17, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged
parent
e68bd85b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
13 deletions
+11
-13
mysql-test/r/ctype_ucs.result
mysql-test/r/ctype_ucs.result
+6
-4
mysql-test/r/heap_hash.result
mysql-test/r/heap_hash.result
+1
-1
mysql-test/r/user_var.result
mysql-test/r/user_var.result
+0
-6
mysql-test/t/ctype_ucs.test
mysql-test/t/ctype_ucs.test
+1
-1
mysql-test/t/group_min_max.test
mysql-test/t/group_min_max.test
+2
-0
sql/ha_heap.cc
sql/ha_heap.cc
+1
-1
No files found.
mysql-test/r/ctype_ucs.result
View file @
c7532a69
...
@@ -492,13 +492,15 @@ create table t2 (c char(30)) charset=ucs2;
...
@@ -492,13 +492,15 @@ create table t2 (c char(30)) charset=ucs2;
set @v=convert('abc' using ucs2);
set @v=convert('abc' using ucs2);
reset master;
reset master;
insert into t2 values (@v);
insert into t2 values (@v);
show binlog events from
79
;
show binlog events from
95
;
Log_name Pos Event_type Server_id
Orig
_log_pos Info
Log_name Pos Event_type Server_id
End
_log_pos Info
master-bin.000001
79 User var 1 79
@`v`=_ucs2 0x006100620063 COLLATE ucs2_general_ci
master-bin.000001
95 User var 1 135
@`v`=_ucs2 0x006100620063 COLLATE ucs2_general_ci
master-bin.000001 1
19 Query 1 119
use `test`; insert into t2 values (@v)
master-bin.000001 1
35 Query 1 218
use `test`; insert into t2 values (@v)
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
SET @`v`:=_ucs2 0x006100620063 COLLATE ucs2_general_ci;
SET @`v`:=_ucs2 0x006100620063 COLLATE ucs2_general_ci;
use test;
use test;
SET TIMESTAMP=10000;
SET TIMESTAMP=10000;
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1;
SET @@session.sql_mode=0;
insert into t2 values (@v);
insert into t2 values (@v);
drop table t2;
drop table t2;
mysql-test/r/heap_hash.result
View file @
c7532a69
...
@@ -352,6 +352,6 @@ t3 1 a 1 a NULL NULL NULL NULL HASH
...
@@ -352,6 +352,6 @@ t3 1 a 1 a NULL NULL NULL NULL HASH
t3 1 a 2 b NULL 15 NULL NULL HASH
t3 1 a 2 b NULL 15 NULL NULL HASH
explain select * from t1 ignore key(btree_idx), t3 where t1.name='matt' and t3.a = concat('',t1.name) and t3.b=t1.name;
explain select * from t1 ignore key(btree_idx), t3 where t1.name='matt' and t3.a = concat('',t1.name) and t3.b=t1.name;
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 t3 ref a a 40 const,const 6 Using where
1 SIMPLE t1 ref heap_idx heap_idx 20 const 7 Using where
1 SIMPLE t1 ref heap_idx heap_idx 20 const 7 Using where
1 SIMPLE t3 ref a a 40 func,const 6 Using where
drop table t1, t2, t3;
drop table t1, t2, t3;
mysql-test/r/user_var.result
View file @
c7532a69
...
@@ -173,18 +173,12 @@ SET @`a b`='hello';
...
@@ -173,18 +173,12 @@ SET @`a b`='hello';
INSERT INTO t1 VALUES(@`a b`);
INSERT INTO t1 VALUES(@`a b`);
set @var1= "';aaa";
set @var1= "';aaa";
insert into t1 values (@var1);
insert into t1 values (@var1);
create table t2 (c char(30)) charset=ucs2;
set @v=convert('abc' using ucs2);
insert into t2 values (@v);
show binlog events from 95;
show binlog events from 95;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 95 User var 1 136 @`a b`=_latin1 0x68656C6C6F COLLATE latin1_swedish_ci
master-bin.000001 95 User var 1 136 @`a b`=_latin1 0x68656C6C6F COLLATE latin1_swedish_ci
master-bin.000001 136 Query 1 222 use `test`; INSERT INTO t1 VALUES(@`a b`)
master-bin.000001 136 Query 1 222 use `test`; INSERT INTO t1 VALUES(@`a b`)
master-bin.000001 222 User var 1 264 @`var1`=_latin1 0x273B616161 COLLATE latin1_swedish_ci
master-bin.000001 222 User var 1 264 @`var1`=_latin1 0x273B616161 COLLATE latin1_swedish_ci
master-bin.000001 264 Query 1 350 use `test`; insert into t1 values (@var1)
master-bin.000001 264 Query 1 350 use `test`; insert into t1 values (@var1)
master-bin.000001 350 Query 1 448 use `test`; create table t2 (c char(30)) charset=ucs2
master-bin.000001 448 User var 1 488 @`v`=_ucs2 0x006100620063 COLLATE ucs2_general_ci
master-bin.000001 488 Query 1 571 use `test`; insert into t2 values (@v)
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
SET @`a b`:=_latin1 0x68656C6C6F COLLATE latin1_swedish_ci;
SET @`a b`:=_latin1 0x68656C6C6F COLLATE latin1_swedish_ci;
use test;
use test;
...
...
mysql-test/t/ctype_ucs.test
View file @
c7532a69
...
@@ -332,7 +332,7 @@ create table t2 (c char(30)) charset=ucs2;
...
@@ -332,7 +332,7 @@ create table t2 (c char(30)) charset=ucs2;
set
@
v
=
convert
(
'abc'
using
ucs2
);
set
@
v
=
convert
(
'abc'
using
ucs2
);
reset
master
;
reset
master
;
insert
into
t2
values
(
@
v
);
insert
into
t2
values
(
@
v
);
show
binlog
events
from
79
;
show
binlog
events
from
95
;
# more important than SHOW BINLOG EVENTS, mysqlbinlog (where we
# more important than SHOW BINLOG EVENTS, mysqlbinlog (where we
# absolutely need variables names to be quoted and strings to be
# absolutely need variables names to be quoted and strings to be
# escaped).
# escaped).
...
...
mysql-test/t/group_min_max.test
View file @
c7532a69
...
@@ -598,8 +598,10 @@ drop table t3;
...
@@ -598,8 +598,10 @@ drop table t3;
# Bug #6142: a problem with the empty innodb table
# Bug #6142: a problem with the empty innodb table
#
#
--
disable_warnings
create
table
t1
(
create
table
t1
(
a
varchar
(
30
),
b
varchar
(
30
),
primary
key
(
a
),
key
(
b
)
a
varchar
(
30
),
b
varchar
(
30
),
primary
key
(
a
),
key
(
b
)
)
engine
=
innodb
;
)
engine
=
innodb
;
--
enable_warnings
select
distinct
a
from
t1
;
select
distinct
a
from
t1
;
drop
table
t1
;
drop
table
t1
;
sql/ha_heap.cc
View file @
c7532a69
...
@@ -131,7 +131,7 @@ int ha_heap::write_row(byte * buf)
...
@@ -131,7 +131,7 @@ int ha_heap::write_row(byte * buf)
int
ha_heap
::
update_row
(
const
byte
*
old_data
,
byte
*
new_data
)
int
ha_heap
::
update_row
(
const
byte
*
old_data
,
byte
*
new_data
)
{
{
int
res
;
int
res
;
statistic_increment
(
ha_update_count
,
&
LOCK_status
);
statistic_increment
(
table
->
in_use
->
status_var
.
ha_update_count
,
&
LOCK_status
);
if
(
table
->
timestamp_field_type
&
TIMESTAMP_AUTO_SET_ON_UPDATE
)
if
(
table
->
timestamp_field_type
&
TIMESTAMP_AUTO_SET_ON_UPDATE
)
table
->
timestamp_field
->
set_time
();
table
->
timestamp_field
->
set_time
();
res
=
heap_update
(
file
,
old_data
,
new_data
);
res
=
heap_update
(
file
,
old_data
,
new_data
);
...
...
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