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
80933d9f
Commit
80933d9f
authored
May 07, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
3ce315ce
7e7ed0f6
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
49 additions
and
19 deletions
+49
-19
BUILD/FINISH.sh
BUILD/FINISH.sh
+0
-6
client/mysql.cc
client/mysql.cc
+2
-1
mysql-test/r/create.result
mysql-test/r/create.result
+3
-3
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+6
-0
mysql-test/r/temp_table.result
mysql-test/r/temp_table.result
+9
-0
mysql-test/r/type_float.result
mysql-test/r/type_float.result
+1
-1
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+9
-0
mysql-test/t/temp_table-master.opt
mysql-test/t/temp_table-master.opt
+1
-0
mysql-test/t/temp_table.test
mysql-test/t/temp_table.test
+8
-0
sql/ha_heap.cc
sql/ha_heap.cc
+4
-2
sql/item.cc
sql/item.cc
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+5
-5
No files found.
BUILD/FINISH.sh
View file @
80933d9f
...
@@ -2,12 +2,6 @@ cflags="$c_warnings $extra_flags"
...
@@ -2,12 +2,6 @@ cflags="$c_warnings $extra_flags"
cxxflags
=
"
$cxx_warnings
$base_cxxflags
$extra_flags
"
cxxflags
=
"
$cxx_warnings
$base_cxxflags
$extra_flags
"
extra_configs
=
"
$extra_configs
$local_infile_configs
"
extra_configs
=
"
$extra_configs
$local_infile_configs
"
configure
=
"./configure
$base_configs
$extra_configs
"
configure
=
"./configure
$base_configs
$extra_configs
"
for
arg
do
# Escape special characters so they don't confuse eval
configure
=
"
$configure
"
`
echo
"
$arg
"
|
\
sed
-e
's,\([^a-zA-Z0-9_.=-]\),\\\\\1,g'
`
done
commands
=
"
\
commands
=
"
\
$make
-k distclean || true
$make
-k distclean || true
...
...
client/mysql.cc
View file @
80933d9f
...
@@ -962,7 +962,8 @@ static int read_lines(bool execute_commands)
...
@@ -962,7 +962,8 @@ static int read_lines(bool execute_commands)
}
}
else
else
{
{
char
*
prompt
=
(
char
*
)
(
glob_buffer
.
is_empty
()
?
construct_prompt
()
:
char
*
prompt
=
(
char
*
)
(
ml_comment
?
" /*> "
:
glob_buffer
.
is_empty
()
?
construct_prompt
()
:
!
in_string
?
" -> "
:
!
in_string
?
" -> "
:
in_string
==
'\''
?
in_string
==
'\''
?
" '> "
:
(
in_string
==
'`'
?
" '> "
:
(
in_string
==
'`'
?
...
...
mysql-test/r/create.result
View file @
80933d9f
...
@@ -448,11 +448,11 @@ Table Create Table
...
@@ -448,11 +448,11 @@ Table Create Table
t2 CREATE TABLE `t2` (
t2 CREATE TABLE `t2` (
`ifnull(a,a)` tinyint(4) default NULL,
`ifnull(a,a)` tinyint(4) default NULL,
`ifnull(b,b)` smallint(6) default NULL,
`ifnull(b,b)` smallint(6) default NULL,
`ifnull(c,c)` mediumint(
9
) default NULL,
`ifnull(c,c)` mediumint(
8
) default NULL,
`ifnull(d,d)` int(11) default NULL,
`ifnull(d,d)` int(11) default NULL,
`ifnull(e,e)` bigint(20) default NULL,
`ifnull(e,e)` bigint(20) default NULL,
`ifnull(f,f)` float(
3
,2) default NULL,
`ifnull(f,f)` float(
24
,2) default NULL,
`ifnull(g,g)` double(
4
,3) default NULL,
`ifnull(g,g)` double(
53
,3) default NULL,
`ifnull(h,h)` decimal(5,4) default NULL,
`ifnull(h,h)` decimal(5,4) default NULL,
`ifnull(i,i)` year(4) default NULL,
`ifnull(i,i)` year(4) default NULL,
`ifnull(j,j)` date default NULL,
`ifnull(j,j)` date default NULL,
...
...
mysql-test/r/innodb.result
View file @
80933d9f
...
@@ -2391,3 +2391,9 @@ drop table t1;
...
@@ -2391,3 +2391,9 @@ drop table t1;
set storage_engine=MyISAM;
set storage_engine=MyISAM;
create table t1 (v varchar(16384)) engine=innodb;
create table t1 (v varchar(16384)) engine=innodb;
drop table t1;
drop table t1;
create table t1(a int(1) , b int(1)) engine=innodb;
insert into t1 values ('1111', '3333');
select distinct concat(a, b) from t1;
concat(a, b)
11113333
drop table t1;
mysql-test/r/temp_table.result
View file @
80933d9f
...
@@ -123,3 +123,12 @@ select * from t1;
...
@@ -123,3 +123,12 @@ select * from t1;
A
A
This is view again
This is view again
drop view t1;
drop view t1;
create table t1 (a int, b int, index(a), index(b));
create table t2 (c int auto_increment, d varchar(255), primary key (c));
insert into t1 values (3,1),(3,2);
insert into t2 values (NULL, 'foo'), (NULL, 'bar');
select d, c from t1 left join t2 on b = c where a = 3 order by d;
d c
bar 2
foo 1
drop table t1, t2;
mysql-test/r/type_float.result
View file @
80933d9f
...
@@ -92,7 +92,7 @@ show create table t2;
...
@@ -92,7 +92,7 @@ show create table t2;
Table Create Table
Table Create Table
t2 CREATE TABLE `t2` (
t2 CREATE TABLE `t2` (
`col1` double default NULL,
`col1` double default NULL,
`col2` double(
22
,5) default NULL,
`col2` double(
53
,5) default NULL,
`col3` double default NULL,
`col3` double default NULL,
`col4` double default NULL
`col4` double default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
) ENGINE=MyISAM DEFAULT CHARSET=latin1
...
...
mysql-test/t/innodb.test
View file @
80933d9f
...
@@ -1300,3 +1300,12 @@ eval set storage_engine=$default;
...
@@ -1300,3 +1300,12 @@ eval set storage_engine=$default;
# InnoDB specific varchar tests
# InnoDB specific varchar tests
create
table
t1
(
v
varchar
(
16384
))
engine
=
innodb
;
create
table
t1
(
v
varchar
(
16384
))
engine
=
innodb
;
drop
table
t1
;
drop
table
t1
;
#
# Bug #4082: integer truncation
#
create
table
t1
(
a
int
(
1
)
,
b
int
(
1
))
engine
=
innodb
;
insert
into
t1
values
(
'1111'
,
'3333'
);
select
distinct
concat
(
a
,
b
)
from
t1
;
drop
table
t1
;
mysql-test/t/temp_table-master.opt
0 → 100644
View file @
80933d9f
--tmpdir=$MYSQL_TEST_DIR/var//tmp
mysql-test/t/temp_table.test
View file @
80933d9f
...
@@ -104,3 +104,11 @@ drop table t1;
...
@@ -104,3 +104,11 @@ drop table t1;
select
*
from
t1
;
select
*
from
t1
;
drop
view
t1
;
drop
view
t1
;
# Bug #8497: tmpdir with extra slashes would cause failures
#
create
table
t1
(
a
int
,
b
int
,
index
(
a
),
index
(
b
));
create
table
t2
(
c
int
auto_increment
,
d
varchar
(
255
),
primary
key
(
c
));
insert
into
t1
values
(
3
,
1
),(
3
,
2
);
insert
into
t2
values
(
NULL
,
'foo'
),
(
NULL
,
'bar'
);
select
d
,
c
from
t1
left
join
t2
on
b
=
c
where
a
=
3
order
by
d
;
drop
table
t1
,
t2
;
sql/ha_heap.cc
View file @
80933d9f
...
@@ -424,7 +424,8 @@ THR_LOCK_DATA **ha_heap::store_lock(THD *thd,
...
@@ -424,7 +424,8 @@ THR_LOCK_DATA **ha_heap::store_lock(THD *thd,
int
ha_heap
::
delete_table
(
const
char
*
name
)
int
ha_heap
::
delete_table
(
const
char
*
name
)
{
{
char
buff
[
FN_REFLEN
];
char
buff
[
FN_REFLEN
];
int
error
=
heap_delete_table
(
fn_format
(
buff
,
name
,
""
,
""
,
4
+
2
));
int
error
=
heap_delete_table
(
fn_format
(
buff
,
name
,
""
,
""
,
MY_REPLACE_EXT
|
MY_UNPACK_FILENAME
));
return
error
==
ENOENT
?
0
:
error
;
return
error
==
ENOENT
?
0
:
error
;
}
}
...
@@ -555,7 +556,8 @@ int ha_heap::create(const char *name, TABLE *table_arg,
...
@@ -555,7 +556,8 @@ int ha_heap::create(const char *name, TABLE *table_arg,
hp_create_info
.
max_table_size
=
current_thd
->
variables
.
max_heap_table_size
;
hp_create_info
.
max_table_size
=
current_thd
->
variables
.
max_heap_table_size
;
hp_create_info
.
with_auto_increment
=
found_real_auto_increment
;
hp_create_info
.
with_auto_increment
=
found_real_auto_increment
;
max_rows
=
(
ha_rows
)
(
hp_create_info
.
max_table_size
/
mem_per_row
);
max_rows
=
(
ha_rows
)
(
hp_create_info
.
max_table_size
/
mem_per_row
);
error
=
heap_create
(
fn_format
(
buff
,
name
,
""
,
""
,
4
+
2
),
error
=
heap_create
(
fn_format
(
buff
,
name
,
""
,
""
,
MY_REPLACE_EXT
|
MY_UNPACK_FILENAME
),
keys
,
keydef
,
share
->
reclength
,
keys
,
keydef
,
share
->
reclength
,
(
ulong
)
((
share
->
max_rows
<
max_rows
&&
(
ulong
)
((
share
->
max_rows
<
max_rows
&&
share
->
max_rows
)
?
share
->
max_rows
)
?
...
...
sql/item.cc
View file @
80933d9f
...
@@ -1035,7 +1035,7 @@ void Item_field::set_field(Field *field_par)
...
@@ -1035,7 +1035,7 @@ void Item_field::set_field(Field *field_par)
field
=
result_field
=
field_par
;
// for easy coding with fields
field
=
result_field
=
field_par
;
// for easy coding with fields
maybe_null
=
field
->
maybe_null
();
maybe_null
=
field
->
maybe_null
();
decimals
=
field
->
decimals
();
decimals
=
field
->
decimals
();
max_length
=
field_par
->
field_length
;
max_length
=
field_par
->
max_length
()
;
table_name
=
*
field_par
->
table_name
;
table_name
=
*
field_par
->
table_name
;
field_name
=
field_par
->
field_name
;
field_name
=
field_par
->
field_name
;
db_name
=
field_par
->
table
->
s
->
db
;
db_name
=
field_par
->
table
->
s
->
db
;
...
...
sql/sql_select.cc
View file @
80933d9f
...
@@ -7955,20 +7955,20 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
...
@@ -7955,20 +7955,20 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
temp_pool_slot
=
bitmap_set_next
(
&
temp_pool
);
temp_pool_slot
=
bitmap_set_next
(
&
temp_pool
);
if
(
temp_pool_slot
!=
MY_BIT_NONE
)
// we got a slot
if
(
temp_pool_slot
!=
MY_BIT_NONE
)
// we got a slot
sprintf
(
filename
,
"%s_%lx_%i"
,
tmp_file_prefix
,
sprintf
(
path
,
"%s_%lx_%i"
,
tmp_file_prefix
,
current_pid
,
temp_pool_slot
);
current_pid
,
temp_pool_slot
);
else
else
{
{
/* if we run out of slots or we are not using tempool */
/* if we run out of slots or we are not using tempool */
sprintf
(
filename
,
"%s%lx_%lx_%x"
,
tmp_file_prefix
,
current_pid
,
sprintf
(
path
,
"%s%lx_%lx_%x"
,
tmp_file_prefix
,
current_pid
,
thd
->
thread_id
,
thd
->
tmp_table
++
);
thd
->
thread_id
,
thd
->
tmp_table
++
);
}
}
/*
/*
No need
for
change table name to lower case as we are only creating
No need
to
change table name to lower case as we are only creating
MyISAM or HEAP tables here
MyISAM or HEAP tables here
*/
*/
sprintf
(
path
,
"%s%s"
,
mysql_tmpdir
,
filename
);
fn_format
(
path
,
path
,
mysql_tmpdir
,
""
,
MY_REPLACE_EXT
|
MY_UNPACK_FILENAME
);
if
(
group
)
if
(
group
)
{
{
...
...
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