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
f314fbd7
Commit
f314fbd7
authored
Aug 18, 2001
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
merge
Docs/manual.texi: unedit old version; Will reapply later
parents
8cdc6d54
09a9abeb
Changes
22
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
315 additions
and
155 deletions
+315
-155
client/mysqltest.c
client/mysqltest.c
+233
-86
include/config-win.h
include/config-win.h
+0
-1
innobase/include/ut0ut.h
innobase/include/ut0ut.h
+2
-0
myisam/mi_cache.c
myisam/mi_cache.c
+2
-2
myisam/mi_check.c
myisam/mi_check.c
+14
-10
myisam/mi_packrec.c
myisam/mi_packrec.c
+1
-1
myisam/myisamchk.c
myisam/myisamchk.c
+2
-2
mysql-test/t/bdb.test
mysql-test/t/bdb.test
+2
-2
mysql-test/t/err000001.test
mysql-test/t/err000001.test
+2
-1
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+8
-4
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+4
-4
mysql-test/t/overflow.test
mysql-test/t/overflow.test
+1
-1
sql/ha_gemini.cc
sql/ha_gemini.cc
+7
-7
sql/share/estonian/errmsg.txt
sql/share/estonian/errmsg.txt
+12
-12
sql/share/swedish/errmsg.txt
sql/share/swedish/errmsg.txt
+7
-7
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
sql/sql_table.cc
sql/sql_table.cc
+4
-4
sql/sql_test.cc
sql/sql_test.cc
+3
-0
strings/strto.c
strings/strto.c
+5
-5
strings/strtoll.c
strings/strtoll.c
+2
-2
strings/strtoul.c
strings/strtoul.c
+1
-1
strings/strtoull.c
strings/strtoull.c
+2
-2
No files found.
client/mysqltest.c
View file @
f314fbd7
This diff is collapsed.
Click to expand it.
include/config-win.h
View file @
f314fbd7
...
@@ -287,7 +287,6 @@ inline double ulonglong2double(ulonglong value)
...
@@ -287,7 +287,6 @@ inline double ulonglong2double(ulonglong value)
#define FN_ROOTDIR "\\"
#define FN_ROOTDIR "\\"
#define FN_NETWORK_DRIVES
/* Uses \\ to indicate network drives */
#define FN_NETWORK_DRIVES
/* Uses \\ to indicate network drives */
#define FN_NO_CASE_SENCE
/* Files are not case-sensitive */
#define FN_NO_CASE_SENCE
/* Files are not case-sensitive */
#define FN_LOWER_CASE TRUE
/* Files are represented in lower case */
#define MY_NFILE 1024
#define MY_NFILE 1024
#define DO_NOT_REMOVE_THREAD_WRAPPERS
#define DO_NOT_REMOVE_THREAD_WRAPPERS
...
...
innobase/include/ut0ut.h
View file @
f314fbd7
...
@@ -11,7 +11,9 @@ Created 1/20/1994 Heikki Tuuri
...
@@ -11,7 +11,9 @@ Created 1/20/1994 Heikki Tuuri
#include "univ.i"
#include "univ.i"
#include <time.h>
#include <time.h>
#ifndef MYSQL_SERVER
#include <ctype.h>
#include <ctype.h>
#endif
typedef
time_t
ib_time_t
;
typedef
time_t
ib_time_t
;
...
...
myisam/mi_cache.c
View file @
f314fbd7
...
@@ -73,7 +73,7 @@ int _mi_read_cache(IO_CACHE *info, byte *buff, my_off_t pos, uint length,
...
@@ -73,7 +73,7 @@ int _mi_read_cache(IO_CACHE *info, byte *buff, my_off_t pos, uint length,
if
(
!
(
flag
&
READING_HEADER
)
||
info
->
error
==
-
1
||
if
(
!
(
flag
&
READING_HEADER
)
||
info
->
error
==
-
1
||
(
uint
)
info
->
error
+
in_buff_length
<
3
)
(
uint
)
info
->
error
+
in_buff_length
<
3
)
{
{
if
(
!
my_errno
)
if
(
!
my_errno
||
my_errno
==
-
1
)
my_errno
=
HA_ERR_WRONG_IN_RECORD
;
my_errno
=
HA_ERR_WRONG_IN_RECORD
;
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
...
@@ -87,7 +87,7 @@ int _mi_read_cache(IO_CACHE *info, byte *buff, my_off_t pos, uint length,
...
@@ -87,7 +87,7 @@ int _mi_read_cache(IO_CACHE *info, byte *buff, my_off_t pos, uint length,
if
(
!
(
flag
&
READING_HEADER
)
||
(
int
)
read_length
==
-
1
||
if
(
!
(
flag
&
READING_HEADER
)
||
(
int
)
read_length
==
-
1
||
read_length
+
in_buff_length
<
3
)
read_length
+
in_buff_length
<
3
)
{
{
if
(
!
my_errno
)
if
(
!
my_errno
||
my_errno
==
-
1
)
my_errno
=
HA_ERR_WRONG_IN_RECORD
;
my_errno
=
HA_ERR_WRONG_IN_RECORD
;
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
...
...
myisam/mi_check.c
View file @
f314fbd7
...
@@ -708,7 +708,7 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend)
...
@@ -708,7 +708,7 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend)
puts
(
"- check record links"
);
puts
(
"- check record links"
);
}
}
if
(
!
(
record
=
(
byte
*
)
my_
alloca
(
info
->
s
->
base
.
pack_reclength
)))
if
(
!
(
record
=
(
byte
*
)
my_
malloc
(
info
->
s
->
base
.
pack_reclength
,
MYF
(
0
)
)))
{
{
mi_check_print_error
(
param
,
"Not Enough memory"
);
mi_check_print_error
(
param
,
"Not Enough memory"
);
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
...
@@ -924,7 +924,8 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend)
...
@@ -924,7 +924,8 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend)
if
(
block_info
.
rec_len
<
(
uint
)
info
->
s
->
min_pack_length
||
if
(
block_info
.
rec_len
<
(
uint
)
info
->
s
->
min_pack_length
||
block_info
.
rec_len
>
(
uint
)
info
->
s
->
max_pack_length
)
block_info
.
rec_len
>
(
uint
)
info
->
s
->
max_pack_length
)
{
{
mi_check_print_error
(
param
,
"Found block with wrong recordlength: %d at %s"
,
mi_check_print_error
(
param
,
"Found block with wrong recordlength: %d at %s"
,
block_info
.
rec_len
,
llstr
(
start_recpos
,
llbuff
));
block_info
.
rec_len
,
llstr
(
start_recpos
,
llbuff
));
got_error
=
1
;
got_error
=
1
;
break
;
break
;
...
@@ -934,7 +935,8 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend)
...
@@ -934,7 +935,8 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend)
goto
err
;
goto
err
;
if
(
_mi_pack_rec_unpack
(
info
,
record
,
info
->
rec_buff
,
block_info
.
rec_len
))
if
(
_mi_pack_rec_unpack
(
info
,
record
,
info
->
rec_buff
,
block_info
.
rec_len
))
{
{
mi_check_print_error
(
param
,
"Found wrong record at %s"
,
llstr
(
start_recpos
,
llbuff
));
mi_check_print_error
(
param
,
"Found wrong record at %s"
,
llstr
(
start_recpos
,
llbuff
));
got_error
=
1
;
got_error
=
1
;
}
}
if
(
static_row_size
)
if
(
static_row_size
)
...
@@ -1082,12 +1084,12 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend)
...
@@ -1082,12 +1084,12 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend)
printf
(
"Lost space: %12s Linkdata: %10s
\n
"
,
printf
(
"Lost space: %12s Linkdata: %10s
\n
"
,
llstr
(
empty
,
llbuff
),
llstr
(
link_used
,
llbuff2
));
llstr
(
empty
,
llbuff
),
llstr
(
link_used
,
llbuff2
));
}
}
my_
afree
((
gptr
)
record
);
my_
free
((
gptr
)
record
,
MYF
(
0
)
);
DBUG_RETURN
(
error
);
DBUG_RETURN
(
error
);
err:
err:
mi_check_print_error
(
param
,
"got error: %d when reading datafile
"
,
my_errno
);
mi_check_print_error
(
param
,
"got error: %d when reading datafile
at record: %s"
,
my_errno
,
llstr
(
records
,
llbuff
)
);
err2:
err2:
my_
afree
((
gptr
)
record
);
my_
free
((
gptr
)
record
,
MYF
(
0
)
);
param
->
retry_without_quick
=
1
;
param
->
retry_without_quick
=
1
;
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
/* chk_data_link */
}
/* chk_data_link */
...
@@ -1188,7 +1190,7 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
...
@@ -1188,7 +1190,7 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
del
=
info
->
state
->
del
;
del
=
info
->
state
->
del
;
info
->
state
->
records
=
info
->
state
->
del
=
share
->
state
.
split
=
0
;
info
->
state
->
records
=
info
->
state
->
del
=
share
->
state
.
split
=
0
;
info
->
state
->
empty
=
0
;
info
->
state
->
empty
=
0
;
if
(
sort_info
->
new_data_file_type
!=
COMPRESSED_RECORD
&&
!
rep_quick
)
if
(
!
rep_quick
)
share
->
state
.
checksum
=
0
;
share
->
state
.
checksum
=
0
;
info
->
update
=
(
short
)
(
HA_STATE_CHANGED
|
HA_STATE_ROW_CHANGED
);
info
->
update
=
(
short
)
(
HA_STATE_CHANGED
|
HA_STATE_ROW_CHANGED
);
for
(
i
=
0
;
i
<
info
->
s
->
base
.
keys
;
i
++
)
for
(
i
=
0
;
i
<
info
->
s
->
base
.
keys
;
i
++
)
...
@@ -1866,8 +1868,7 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
...
@@ -1866,8 +1868,7 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
sort_param
.
sort_info
=
sort_info
;
sort_param
.
sort_info
=
sort_info
;
del
=
info
->
state
->
del
;
del
=
info
->
state
->
del
;
if
(
sort_info
->
new_data_file_type
!=
COMPRESSED_RECORD
&&
if
(
!
rep_quick
)
!
rep_quick
)
share
->
state
.
checksum
=
0
;
share
->
state
.
checksum
=
0
;
rec_per_key_part
=
param
->
rec_per_key_part
;
rec_per_key_part
=
param
->
rec_per_key_part
;
...
@@ -2414,6 +2415,7 @@ static int sort_get_next_record(SORT_INFO *sort_info)
...
@@ -2414,6 +2415,7 @@ static int sort_get_next_record(SORT_INFO *sort_info)
llstr
(
sort_info
->
pos
,
llbuff
));
llstr
(
sort_info
->
pos
,
llbuff
));
continue
;
continue
;
}
}
info
->
checksum
=
mi_checksum
(
info
,
sort_info
->
record
);
if
(
!
sort_info
->
fix_datafile
)
if
(
!
sort_info
->
fix_datafile
)
sort_info
->
filepos
=
sort_info
->
pos
;
sort_info
->
filepos
=
sort_info
->
pos
;
sort_info
->
max_pos
=
(
sort_info
->
pos
=
block_info
.
filepos
+
sort_info
->
max_pos
=
(
sort_info
->
pos
=
block_info
.
filepos
+
...
@@ -2492,6 +2494,7 @@ int sort_write_record(SORT_INFO *sort_info)
...
@@ -2492,6 +2494,7 @@ int sort_write_record(SORT_INFO *sort_info)
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
sort_info
->
filepos
+=
block_length
;
sort_info
->
filepos
+=
block_length
;
info
->
s
->
state
.
checksum
+=
info
->
checksum
;
break
;
break
;
case
COMPRESSED_RECORD
:
case
COMPRESSED_RECORD
:
reclength
=
info
->
packed_length
;
reclength
=
info
->
packed_length
;
...
@@ -2504,6 +2507,7 @@ int sort_write_record(SORT_INFO *sort_info)
...
@@ -2504,6 +2507,7 @@ int sort_write_record(SORT_INFO *sort_info)
mi_check_print_error
(
param
,
"%d when writing to datafile"
,
my_errno
);
mi_check_print_error
(
param
,
"%d when writing to datafile"
,
my_errno
);
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
info
->
s
->
state
.
checksum
+=
info
->
checksum
;
sort_info
->
filepos
+=
reclength
+
length
;
sort_info
->
filepos
+=
reclength
+
length
;
break
;
break
;
}
}
...
...
myisam/mi_packrec.c
View file @
f314fbd7
...
@@ -962,7 +962,7 @@ int _mi_read_rnd_pack_record(MI_INFO *info, byte *buf,
...
@@ -962,7 +962,7 @@ int _mi_read_rnd_pack_record(MI_INFO *info, byte *buf,
b_type
=
_mi_pack_get_block_info
(
info
,
&
block_info
,
info
->
dfile
,
filepos
,
b_type
=
_mi_pack_get_block_info
(
info
,
&
block_info
,
info
->
dfile
,
filepos
,
info
->
rec_buff
);
info
->
rec_buff
);
if
(
b_type
)
if
(
b_type
)
goto
err
;
goto
err
;
/* Error code is already set */
#ifndef DBUG_OFF
#ifndef DBUG_OFF
if
(
block_info
.
rec_len
>
share
->
max_pack_length
)
if
(
block_info
.
rec_len
>
share
->
max_pack_length
)
{
{
...
...
myisam/myisamchk.c
View file @
f314fbd7
...
@@ -201,7 +201,7 @@ static struct option long_options[] =
...
@@ -201,7 +201,7 @@ static struct option long_options[] =
static
void
print_version
(
void
)
static
void
print_version
(
void
)
{
{
printf
(
"%s Ver 1.
49
for %s at %s
\n
"
,
my_progname
,
SYSTEM_TYPE
,
printf
(
"%s Ver 1.
50
for %s at %s
\n
"
,
my_progname
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
MACHINE_TYPE
);
}
}
...
@@ -953,7 +953,7 @@ static void descript(MI_CHECK *param, register MI_INFO *info, my_string name)
...
@@ -953,7 +953,7 @@ static void descript(MI_CHECK *param, register MI_INFO *info, my_string name)
share
->
base
.
raid_chunks
,
share
->
base
.
raid_chunks
,
share
->
base
.
raid_chunksize
);
share
->
base
.
raid_chunksize
);
}
}
if
(
share
->
options
&
HA_OPTION_CHECKSUM
)
if
(
share
->
options
&
(
HA_OPTION_CHECKSUM
|
HA_OPTION_COMPRESS_RECORD
)
)
printf
(
"Checksum: %23s
\n
"
,
llstr
(
info
->
s
->
state
.
checksum
,
llbuff
));
printf
(
"Checksum: %23s
\n
"
,
llstr
(
info
->
s
->
state
.
checksum
,
llbuff
));
;
;
if
(
share
->
options
&
HA_OPTION_DELAY_KEY_WRITE
)
if
(
share
->
options
&
HA_OPTION_DELAY_KEY_WRITE
)
...
...
mysql-test/t/bdb.test
View file @
f314fbd7
...
@@ -693,7 +693,7 @@ drop table t1;
...
@@ -693,7 +693,7 @@ drop table t1;
create
table
t1
(
id
int
NOT
NULL
,
id2
int
NOT
NULL
,
id3
int
NOT
NULL
,
dummy1
char
(
30
),
primary
key
(
id
,
id2
),
index
index_id3
(
id3
))
type
=
bdb
;
create
table
t1
(
id
int
NOT
NULL
,
id2
int
NOT
NULL
,
id3
int
NOT
NULL
,
dummy1
char
(
30
),
primary
key
(
id
,
id2
),
index
index_id3
(
id3
))
type
=
bdb
;
insert
into
t1
values
(
0
,
0
,
0
,
'ABCDEFGHIJ'
),(
2
,
2
,
2
,
'BCDEFGHIJK'
),(
1
,
1
,
1
,
'CDEFGHIJKL'
);
insert
into
t1
values
(
0
,
0
,
0
,
'ABCDEFGHIJ'
),(
2
,
2
,
2
,
'BCDEFGHIJK'
),(
1
,
1
,
1
,
'CDEFGHIJKL'
);
LOCK
TABLES
t1
WRITE
;
LOCK
TABLES
t1
WRITE
;
--
error
690
--
error
1062
insert
into
t1
values
(
99
,
1
,
2
,
'D'
),(
1
,
1
,
2
,
'D'
);
insert
into
t1
values
(
99
,
1
,
2
,
'D'
),(
1
,
1
,
2
,
'D'
);
select
id
from
t1
;
select
id
from
t1
;
select
id
from
t1
;
select
id
from
t1
;
...
@@ -704,7 +704,7 @@ create table t1 (id int NOT NULL,id2 int NOT NULL,id3 int NOT NULL,dummy1 char(3
...
@@ -704,7 +704,7 @@ create table t1 (id int NOT NULL,id2 int NOT NULL,id3 int NOT NULL,dummy1 char(3
insert
into
t1
values
(
0
,
0
,
0
,
'ABCDEFGHIJ'
),(
2
,
2
,
2
,
'BCDEFGHIJK'
),(
1
,
1
,
1
,
'CDEFGHIJKL'
);
insert
into
t1
values
(
0
,
0
,
0
,
'ABCDEFGHIJ'
),(
2
,
2
,
2
,
'BCDEFGHIJK'
),(
1
,
1
,
1
,
'CDEFGHIJKL'
);
LOCK
TABLES
t1
WRITE
;
LOCK
TABLES
t1
WRITE
;
begin
;
begin
;
--
error
690
--
error
1062
insert
into
t1
values
(
99
,
1
,
2
,
'D'
),(
1
,
1
,
2
,
'D'
);
insert
into
t1
values
(
99
,
1
,
2
,
'D'
),(
1
,
1
,
2
,
'D'
);
select
id
from
t1
;
select
id
from
t1
;
insert
ignore
into
t1
values
(
100
,
1
,
2
,
'D'
),(
1
,
1
,
99
,
'D'
);
insert
ignore
into
t1
values
(
100
,
1
,
2
,
'D'
),(
1
,
1
,
99
,
'D'
);
...
...
mysql-test/t/err000001.test
View file @
f314fbd7
...
@@ -10,7 +10,8 @@ create table t1 (a int);
...
@@ -10,7 +10,8 @@ create table t1 (a int);
!
$
1054
select
count
(
test
.
t1
.
b
)
from
t1
;
!
$
1054
select
count
(
test
.
t1
.
b
)
from
t1
;
!
$
1109
select
count
(
not_existing_database
.
t1
)
from
t1
;
!
$
1109
select
count
(
not_existing_database
.
t1
)
from
t1
;
!
$
1109
select
count
(
not_existing_database
.
t1
.
a
)
from
t1
;
!
$
1109
select
count
(
not_existing_database
.
t1
.
a
)
from
t1
;
!
$
1044
select
count
(
not_existing_database
.
t1
.
a
)
from
not_existing_database
.
t1
;
--
error
1044
,
1146
select
count
(
not_existing_database
.
t1
.
a
)
from
not_existing_database
.
t1
;
!
$
1054
select
1
from
t1
order
by
2
;
!
$
1054
select
1
from
t1
order
by
2
;
!
$
1054
select
1
from
t1
group
by
2
;
!
$
1054
select
1
from
t1
group
by
2
;
!
$
1054
select
1
from
t1
order
by
t1
.
b
;
!
$
1054
select
1
from
t1
order
by
t1
.
b
;
...
...
mysql-test/t/fulltext.test
View file @
f314fbd7
...
@@ -73,11 +73,15 @@ CREATE TABLE t3 (
...
@@ -73,11 +73,15 @@ CREATE TABLE t3 (
);
);
--
error
1210
--
error
1210
select
*
from
t2
having
MATCH
inhalt
AGAINST
(
t1
.
id
);
select
*
from
t2
where
MATCH
inhalt
AGAINST
(
t2
.
inhalt
);
--
error
1210
--
error
1210
select
*
from
t2
having
MATCH
ticket
AGAINST
(
'foobar'
);
select
*
from
t2
where
MATCH
inhalt
AGAINST
(
t2
.
inhalt
);
--
error
1191
select
*
from
t2
where
MATCH
ticket
AGAINST
(
'foobar'
);
--
error
1210
--
error
1210
select
*
from
t2
,
t3
having
MATCH
(
t2
.
inhalt
,
t3
.
inhalt
)
AGAINST
(
'foobar'
);
select
*
from
t2
,
t3
where
MATCH
(
t2
.
inhalt
,
t3
.
inhalt
)
AGAINST
(
'foobar'
);
drop
table
t1
,
t2
,
t3
;
drop
table
t1
,
t2
,
t3
;
mysql-test/t/innodb.test
View file @
f314fbd7
...
@@ -414,8 +414,8 @@ drop table t1;
...
@@ -414,8 +414,8 @@ drop table t1;
#
#
CREATE
TABLE
t1
(
a
int
unsigned
NOT
NULL
)
type
=
innodb
;
CREATE
TABLE
t1
(
a
int
unsigned
NOT
NULL
)
type
=
innodb
;
--
error
1031
# Can't test this in 3.23
INSERT
DELAYED
INTO
t1
VALUES
(
1
);
#
INSERT DELAYED INTO t1 VALUES (1);
INSERT
INTO
t1
VALUES
(
1
);
INSERT
INTO
t1
VALUES
(
1
);
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
...
@@ -437,7 +437,7 @@ drop table t1;
...
@@ -437,7 +437,7 @@ drop table t1;
create
table
t1
(
id
int
NOT
NULL
,
id2
int
NOT
NULL
,
id3
int
NOT
NULL
,
dummy1
char
(
30
),
primary
key
(
id
,
id2
),
index
index_id3
(
id3
))
type
=
innodb
;
create
table
t1
(
id
int
NOT
NULL
,
id2
int
NOT
NULL
,
id3
int
NOT
NULL
,
dummy1
char
(
30
),
primary
key
(
id
,
id2
),
index
index_id3
(
id3
))
type
=
innodb
;
insert
into
t1
values
(
0
,
0
,
0
,
'ABCDEFGHIJ'
),(
2
,
2
,
2
,
'BCDEFGHIJK'
),(
1
,
1
,
1
,
'CDEFGHIJKL'
);
insert
into
t1
values
(
0
,
0
,
0
,
'ABCDEFGHIJ'
),(
2
,
2
,
2
,
'BCDEFGHIJK'
),(
1
,
1
,
1
,
'CDEFGHIJKL'
);
LOCK
TABLES
t1
WRITE
;
LOCK
TABLES
t1
WRITE
;
--
error
690
--
error
1062
insert
into
t1
values
(
99
,
1
,
2
,
'D'
),(
1
,
1
,
2
,
'D'
);
insert
into
t1
values
(
99
,
1
,
2
,
'D'
),(
1
,
1
,
2
,
'D'
);
select
id
from
t1
;
select
id
from
t1
;
select
id
from
t1
;
select
id
from
t1
;
...
@@ -448,7 +448,7 @@ create table t1 (id int NOT NULL,id2 int NOT NULL,id3 int NOT NULL,dummy1 char(3
...
@@ -448,7 +448,7 @@ create table t1 (id int NOT NULL,id2 int NOT NULL,id3 int NOT NULL,dummy1 char(3
insert
into
t1
values
(
0
,
0
,
0
,
'ABCDEFGHIJ'
),(
2
,
2
,
2
,
'BCDEFGHIJK'
),(
1
,
1
,
1
,
'CDEFGHIJKL'
);
insert
into
t1
values
(
0
,
0
,
0
,
'ABCDEFGHIJ'
),(
2
,
2
,
2
,
'BCDEFGHIJK'
),(
1
,
1
,
1
,
'CDEFGHIJKL'
);
LOCK
TABLES
t1
WRITE
;
LOCK
TABLES
t1
WRITE
;
begin
;
begin
;
--
error
690
--
error
1062
insert
into
t1
values
(
99
,
1
,
2
,
'D'
),(
1
,
1
,
2
,
'D'
);
insert
into
t1
values
(
99
,
1
,
2
,
'D'
),(
1
,
1
,
2
,
'D'
);
select
id
from
t1
;
select
id
from
t1
;
insert
ignore
into
t1
values
(
100
,
1
,
2
,
'D'
),(
1
,
1
,
99
,
'D'
);
insert
ignore
into
t1
values
(
100
,
1
,
2
,
'D'
),(
1
,
1
,
99
,
'D'
);
...
...
mysql-test/t/overflow.test
View file @
f314fbd7
connect
(
con1
,
localhost
,
boo
,,);
connect
(
con1
,
localhost
,
boo
,,);
connection
con1
;
connection
con1
;
--
error
1064
;
--
error
1064
,
1102
drop
database
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
;
drop
database
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
;
sql/ha_gemini.cc
View file @
f314fbd7
...
@@ -955,7 +955,7 @@ int ha_gemini::handleIndexEntry(const byte * record, dsmRecid_t recid,
...
@@ -955,7 +955,7 @@ int ha_gemini::handleIndexEntry(const byte * record, dsmRecid_t recid,
thd
=
current_thd
;
thd
=
current_thd
;
key_info
=
table
->
key_info
+
keynr
;
key_info
=
table
->
key_info
+
keynr
;
thereIsAnull
=
false
;
thereIsAnull
=
FALSE
;
rc
=
createKeyString
(
record
,
key_info
,
theKey
.
akey
.
keystr
,
rc
=
createKeyString
(
record
,
key_info
,
theKey
.
akey
.
keystr
,
sizeof
(
theKey
.
apad
),
&
keyStringLen
,
sizeof
(
theKey
.
apad
),
&
keyStringLen
,
(
short
)
pindexNumbers
[
keynr
],
(
short
)
pindexNumbers
[
keynr
],
...
@@ -1067,7 +1067,7 @@ int ha_gemini::createKeyString(const byte * record, KEY *pkeyinfo,
...
@@ -1067,7 +1067,7 @@ int ha_gemini::createKeyString(const byte * record, KEY *pkeyinfo,
isNull
=
record
[
key_part
->
null_offset
]
&
key_part
->
null_bit
;
isNull
=
record
[
key_part
->
null_offset
]
&
key_part
->
null_bit
;
if
(
isNull
)
if
(
isNull
)
*
thereIsAnull
=
true
;
*
thereIsAnull
=
TRUE
;
rc
=
gemFieldToIdxComponent
(
pos
,
rc
=
gemFieldToIdxComponent
(
pos
,
(
unsigned
long
)
key_part_length
,
(
unsigned
long
)
key_part_length
,
...
@@ -1107,7 +1107,7 @@ int ha_gemini::update_row(const byte * old_record, byte * new_record)
...
@@ -1107,7 +1107,7 @@ int ha_gemini::update_row(const byte * old_record, byte * new_record)
}
}
for
(
uint
keynr
=
0
;
keynr
<
table
->
keys
;
keynr
++
)
for
(
uint
keynr
=
0
;
keynr
<
table
->
keys
;
keynr
++
)
{
{
if
(
key_cmp
(
keynr
,
old_record
,
new_record
,
false
))
if
(
key_cmp
(
keynr
,
old_record
,
new_record
,
FALSE
))
{
{
error
=
handleIndexEntry
(
old_record
,
lastRowid
,
KEY_DELETE
,
keynr
);
error
=
handleIndexEntry
(
old_record
,
lastRowid
,
KEY_DELETE
,
keynr
);
if
(
error
)
if
(
error
)
...
@@ -2430,8 +2430,8 @@ int ha_gemini::analyze(THD* thd, HA_CHECK_OPT* check_opt)
...
@@ -2430,8 +2430,8 @@ int ha_gemini::analyze(THD* thd, HA_CHECK_OPT* check_opt)
uint
saveIsolation
;
uint
saveIsolation
;
dsmMask_t
saveLockMode
;
dsmMask_t
saveLockMode
;
check_opt
->
quick
=
true
;
check_opt
->
quick
=
TRUE
;
check_opt
->
optimize
=
true
;
// Tells check not to get table lock
check_opt
->
optimize
=
TRUE
;
// Tells check not to get table lock
saveLockMode
=
lockMode
;
saveLockMode
=
lockMode
;
saveIsolation
=
thd
->
gemini
.
tx_isolation
;
saveIsolation
=
thd
->
gemini
.
tx_isolation
;
thd
->
gemini
.
tx_isolation
=
ISO_READ_UNCOMMITTED
;
thd
->
gemini
.
tx_isolation
=
ISO_READ_UNCOMMITTED
;
...
@@ -2503,7 +2503,7 @@ int ha_gemini::check(THD* thd, HA_CHECK_OPT* check_opt)
...
@@ -2503,7 +2503,7 @@ int ha_gemini::check(THD* thd, HA_CHECK_OPT* check_opt)
error
=
fetch_row
(
thd
->
gemini
.
context
,
buf
);
error
=
fetch_row
(
thd
->
gemini
.
context
,
buf
);
if
(
!
error
)
if
(
!
error
)
{
{
if
(
key_cmp
(
i
,
buf
,
indexBuf
,
false
))
if
(
key_cmp
(
i
,
buf
,
indexBuf
,
FALSE
))
{
{
gemini_msg
((
dsmContext_t
*
)
thd
->
gemini
.
context
,
gemini_msg
((
dsmContext_t
*
)
thd
->
gemini
.
context
,
...
@@ -2534,7 +2534,7 @@ int ha_gemini::check(THD* thd, HA_CHECK_OPT* check_opt)
...
@@ -2534,7 +2534,7 @@ int ha_gemini::check(THD* thd, HA_CHECK_OPT* check_opt)
}
}
}
}
key_cmp
(
i
,
indexBuf
,
prevBuf
,
true
);
key_cmp
(
i
,
indexBuf
,
prevBuf
,
TRUE
);
bcopy
((
void
*
)
indexBuf
,(
void
*
)
prevBuf
,
table
->
rec_buff_length
);
bcopy
((
void
*
)
indexBuf
,(
void
*
)
prevBuf
,
table
->
rec_buff_length
);
if
(
!
error
)
if
(
!
error
)
...
...
sql/share/estonian/errmsg.txt
View file @
f314fbd7
...
@@ -177,19 +177,19 @@
...
@@ -177,19 +177,19 @@
"Can't write, because of unique constraint, to table '%-.64s'",
"Can't write, because of unique constraint, to table '%-.64s'",
"BLOB column '%-.64s' used in key specification without a key length",
"BLOB column '%-.64s' used in key specification without a key length",
"All parts of a PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE instead",
"All parts of a PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE instead",
"
Result consisted of more than one row
",
"
Tulemis on rohkem kui ks kirje"
,
"This table type requires a primary key",
"This table type requires a primary key",
"Antud MySQL ei ole kompileeritud RAID-i toega",
"Antud MySQL ei ole kompileeritud RAID-i toega",
"You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column",
"You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column",
"Key '%-.64s' doesn't exist in table '%-.64s'",
"Key '%-.64s' doesn't exist in table '%-.64s'",
"
Can't open table
",
"
Ei suuda tabelit avada
",
"
The handler for the table doesn't support check/repair
",
"
See tabelitp ei toeta kske CHECK/REPAIR",
"
You are not allowed to execute this command in a transaction
",
"
Puudub igus selle transaktsiooniksu andmiseks",
"
Got error %d during COMMIT
",
"
Sain vea %d COMMIT ksu titmisel",
"
Got error %d during ROLLBACK
",
"
Sain vea %d ROLLBACK ksu titmisel",
"
Got error %d during FLUSH_LOGS
",
"
Sain vea %d FLUSH_LOGS ksu titmisel",
"
Got error %d during CHECKPOINT
",
"
Sain vea %d CHECKPOINT ksu titmisel",
"
Aborted connection %ld to db: '%-.64s' user: '%-.32s' host
: `%-.64s' (%-.64s)",
"
hendus %ld katkestatud andmebaas: '%-.64s' kasutaja: '%-.32s' masin:
`%-.64s' (%-.64s)",
"The handler for the table does not support binary table dump",
"The handler for the table does not support binary table dump",
"Binlog closed while trying to FLUSH MASTER",
"Binlog closed while trying to FLUSH MASTER",
"Failed rebuilding the index of dumped table '%-.64s'",
"Failed rebuilding the index of dumped table '%-.64s'",
...
@@ -198,9 +198,9 @@
...
@@ -198,9 +198,9 @@
"Net error writing to master",
"Net error writing to master",
"Can't find FULLTEXT index matching the column list",
"Can't find FULLTEXT index matching the column list",
"Can't execute the given command because you have active locked tables or an active transaction",
"Can't execute the given command because you have active locked tables or an active transaction",
"
Unknown system variable
'%-.64'",
"
Tundmatu ssteemne muutja
'%-.64'",
"Tab
le '%-.64s' is marked as crashed and should be repaired
",
"Tab
el '%-.64s' on mrgitud vigaseks ja tuleb parandada"
,
"Tab
le '%-.64s' is marked as crashed and last (automatic?) repair failed
",
"Tab
el '%-.64s' on mrgitud vigaseks ja viimane (automaatne?) parandamiskatse ebannestus",
"Warning: Some non-transactional changed tables couldn't be rolled back",
"Warning: Some non-transactional changed tables couldn't be rolled back",
"Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage. Increase this mysqld variable and try again',
"Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage. Increase this mysqld variable and try again',
"This operation cannot be performed with a running slave, run SLAVE STOP first",
"This operation cannot be performed with a running slave, run SLAVE STOP first",
...
...
sql/share/swedish/errmsg.txt
View file @
f314fbd7
...
@@ -205,11 +205,11 @@
...
@@ -205,11 +205,11 @@
"Kunde inte initializera replications-strukturerna. Kontrollera privilegerna för 'master.info'",
"Kunde inte initializera replications-strukturerna. Kontrollera privilegerna för 'master.info'",
"Kunde inte starta en tråd för replikering",
"Kunde inte starta en tråd för replikering",
"Användare '%-.64s' har redan 'max_user_connections' aktiva inloggningar",
"Användare '%-.64s' har redan 'max_user_connections' aktiva inloggningar",
"
Du
kan endast använda konstant-uttryck med SET",
"
Man
kan endast använda konstant-uttryck med SET",
"
Lock wait timeout exceede
d",
"
Fick inte ett lås i t
id",
"
The total number of locks exceeds the lock table size
",
"
Antal lås överskrider antalet reserverade
lås",
"Update
locks cannot be acquired during a READ UNCOMMITTED transaction
",
"Update
rings-lås kan inte göras när man använder READ UNCOMMI
TTED",
"DROP DATABASE
not allowed while thread is holding global read lock
",
"DROP DATABASE
är inte tillåtet när man har ett globalt lä
s-lås",
"CREATE DATABASE
not allowed while thread is holding global read lock
",
"CREATE DATABASE
är inte tillåtet när man har ett globalt lä
s-lås",
"Felaktiga argument till %s",
"Felaktiga argument till %s",
"%-.32s@%-.64s
is not allowed to create new users
",
"%-.32s@%-.64s
har inte rättigheter att skapa nya använda
re",
sql/sql_parse.cc
View file @
f314fbd7
...
@@ -2667,7 +2667,7 @@ TABLE_LIST *add_table_to_list(Table_ident *table, LEX_STRING *alias,
...
@@ -2667,7 +2667,7 @@ TABLE_LIST *add_table_to_list(Table_ident *table, LEX_STRING *alias,
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
#ifdef FN_
LOWER_CAS
E
#ifdef FN_
NO_CASE_SENC
E
if
(
!
alias
)
/* Alias is case sensitive */
if
(
!
alias
)
/* Alias is case sensitive */
if
(
!
(
alias_str
=
sql_strmake
(
alias_str
,
table
->
table
.
length
)))
if
(
!
(
alias_str
=
sql_strmake
(
alias_str
,
table
->
table
.
length
)))
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
...
...
sql/sql_table.cc
View file @
f314fbd7
...
@@ -1125,7 +1125,7 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
...
@@ -1125,7 +1125,7 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
{
{
strmov
(
new_name_buff
,
new_name
);
strmov
(
new_name_buff
,
new_name
);
fn_same
(
new_name_buff
,
table_name
,
3
);
fn_same
(
new_name_buff
,
table_name
,
3
);
#ifdef FN_
LOWER_CAS
E
#ifdef FN_
NO_CASE_SENC
E
if
(
lower_case_table_names
)
if
(
lower_case_table_names
)
casedn_str
(
new_name
);
casedn_str
(
new_name
);
if
((
lower_case_table_names
&&
if
((
lower_case_table_names
&&
...
@@ -1709,7 +1709,7 @@ copy_data_between_tables(TABLE *from,TABLE *to,
...
@@ -1709,7 +1709,7 @@ copy_data_between_tables(TABLE *from,TABLE *to,
/* Turn off recovery logging since rollback of an
/* Turn off recovery logging since rollback of an
alter table is to delete the new table so there
alter table is to delete the new table so there
is no need to log the changes to it. */
is no need to log the changes to it. */
error
=
ha_recovery_logging
(
thd
,
false
);
error
=
ha_recovery_logging
(
thd
,
FALSE
);
if
(
error
)
if
(
error
)
{
{
error
=
1
;
error
=
1
;
...
@@ -1761,7 +1761,7 @@ copy_data_between_tables(TABLE *from,TABLE *to,
...
@@ -1761,7 +1761,7 @@ copy_data_between_tables(TABLE *from,TABLE *to,
if
(
to
->
file
->
activate_all_index
(
thd
))
if
(
to
->
file
->
activate_all_index
(
thd
))
error
=
1
;
error
=
1
;
tmp_error
=
ha_recovery_logging
(
thd
,
true
);
tmp_error
=
ha_recovery_logging
(
thd
,
TRUE
);
/*
/*
Ensure that the new table is saved properly to disk so that we
Ensure that the new table is saved properly to disk so that we
can do a rename
can do a rename
...
@@ -1773,7 +1773,7 @@ copy_data_between_tables(TABLE *from,TABLE *to,
...
@@ -1773,7 +1773,7 @@ copy_data_between_tables(TABLE *from,TABLE *to,
if
(
to
->
file
->
external_lock
(
thd
,
F_UNLCK
))
if
(
to
->
file
->
external_lock
(
thd
,
F_UNLCK
))
error
=
1
;
error
=
1
;
err:
err:
tmp_error
=
ha_recovery_logging
(
thd
,
true
);
tmp_error
=
ha_recovery_logging
(
thd
,
TRUE
);
free_io_cache
(
from
);
free_io_cache
(
from
);
*
copied
=
found_count
;
*
copied
=
found_count
;
*
deleted
=
delete_count
;
*
deleted
=
delete_count
;
...
...
sql/sql_test.cc
View file @
f314fbd7
...
@@ -189,7 +189,10 @@ TEST_join(JOIN *join)
...
@@ -189,7 +189,10 @@ TEST_join(JOIN *join)
void
mysql_print_status
(
THD
*
thd
)
void
mysql_print_status
(
THD
*
thd
)
{
{
char
current_dir
[
FN_REFLEN
];
printf
(
"
\n
Status information:
\n\n
"
);
printf
(
"
\n
Status information:
\n\n
"
);
my_getwd
(
current_dir
,
sizeof
(
current_dir
),
MYF
(
0
));
printf
(
"Current dir: %s
\n
"
,
current_dir
);
if
(
thd
)
if
(
thd
)
thd
->
proc_info
=
"locks"
;
thd
->
proc_info
=
"locks"
;
thr_print_locks
();
// Write some debug info
thr_print_locks
();
// Write some debug info
...
...
strings/strto.c
View file @
f314fbd7
...
@@ -42,13 +42,13 @@
...
@@ -42,13 +42,13 @@
#include "my_sys.h"
/* defines errno */
#include "my_sys.h"
/* defines errno */
#include <errno.h>
#include <errno.h>
#ifdef LONGLONG
#ifdef
USE_
LONGLONG
#define UTYPE_MAX (~(ulonglong) 0)
#define UTYPE_MAX (~(ulonglong) 0)
#define TYPE_MIN LONGLONG_MIN
#define TYPE_MIN LONGLONG_MIN
#define TYPE_MAX LONGLONG_MAX
#define TYPE_MAX LONGLONG_MAX
#define longtype longlong
#define longtype longlong
#define ulongtype ulonglong
#define ulongtype ulonglong
#ifdef UNSIGNED
#ifdef U
SE_U
NSIGNED
#define function ulongtype strtoull
#define function ulongtype strtoull
#else
#else
#define function longtype strtoll
#define function longtype strtoll
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
#define TYPE_MAX LONG_MAX
#define TYPE_MAX LONG_MAX
#define longtype long
#define longtype long
#define ulongtype unsigned long
#define ulongtype unsigned long
#ifdef UNSIGNED
#ifdef U
SE_U
NSIGNED
#define function ulongtype strtoul
#define function ulongtype strtoul
#else
#else
#define function longtype strtol
#define function longtype strtol
...
@@ -170,7 +170,7 @@ function (const char *nptr,char **endptr,int base)
...
@@ -170,7 +170,7 @@ function (const char *nptr,char **endptr,int base)
if
(
endptr
!=
NULL
)
if
(
endptr
!=
NULL
)
*
endptr
=
(
char
*
)
s
;
*
endptr
=
(
char
*
)
s
;
#ifndef UNSIGNED
#ifndef U
SE_U
NSIGNED
/* Check for a value that is within the range of
/* Check for a value that is within the range of
`unsigned long int', but outside the range of `long int'. */
`unsigned long int', but outside the range of `long int'. */
if
(
negative
)
if
(
negative
)
...
@@ -185,7 +185,7 @@ function (const char *nptr,char **endptr,int base)
...
@@ -185,7 +185,7 @@ function (const char *nptr,char **endptr,int base)
if
(
overflow
)
if
(
overflow
)
{
{
my_errno
=
ERANGE
;
my_errno
=
ERANGE
;
#ifdef UNSIGNED
#ifdef U
SE_U
NSIGNED
return
UTYPE_MAX
;
return
UTYPE_MAX
;
#else
#else
return
negative
?
TYPE_MIN
:
TYPE_MAX
;
return
negative
?
TYPE_MIN
:
TYPE_MAX
;
...
...
strings/strtoll.c
View file @
f314fbd7
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include <global.h>
#include <global.h>
#include <m_string.h>
#include <m_string.h>
#if !defined(HAVE_STRTO
U
LL) && defined(HAVE_LONG_LONG)
#if !defined(HAVE_STRTOLL) && defined(HAVE_LONG_LONG)
#define LONGLONG
#define
USE_
LONGLONG
#include "strto.c"
#include "strto.c"
#endif
#endif
strings/strtoul.c
View file @
f314fbd7
...
@@ -19,6 +19,6 @@
...
@@ -19,6 +19,6 @@
#include <global.h>
#include <global.h>
#if !defined(MSDOS) && !defined(HAVE_STRTOUL)
#if !defined(MSDOS) && !defined(HAVE_STRTOUL)
#define UNSIGNED
#define U
SE_U
NSIGNED
#include "strto.c"
#include "strto.c"
#endif
#endif
strings/strtoull.c
View file @
f314fbd7
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include <global.h>
#include <global.h>
#include <m_string.h>
#include <m_string.h>
#if !defined(HAVE_STRTOULL) && defined(HAVE_LONG_LONG)
#if !defined(HAVE_STRTOULL) && defined(HAVE_LONG_LONG)
#define UNSIGNED
#define U
SE_U
NSIGNED
#define LONGLONG
#define
USE_
LONGLONG
#include "strto.c"
#include "strto.c"
#endif
#endif
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