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
24eaa14b
Commit
24eaa14b
authored
Mar 16, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new
into shellback.(none):/home/msvensson/mysql/mysql-5.1
parents
59a4f5fd
cdc362e1
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
57 additions
and
31 deletions
+57
-31
client/cmakelists.txt
client/cmakelists.txt
+1
-1
extra/cmakelists.txt
extra/cmakelists.txt
+10
-10
libmysql/cmakelists.txt
libmysql/cmakelists.txt
+1
-1
mysql-test/r/partition.result
mysql-test/r/partition.result
+11
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+17
-0
server-tools/instance-manager/cmakelists.txt
server-tools/instance-manager/cmakelists.txt
+1
-1
sql/cmakelists.txt
sql/cmakelists.txt
+1
-1
sql/sql_lex.h
sql/sql_lex.h
+1
-0
sql/sql_parse.cc
sql/sql_parse.cc
+2
-2
sql/sql_partition.cc
sql/sql_partition.cc
+3
-3
sql/sql_yacc.yy
sql/sql_yacc.yy
+7
-5
win/README
win/README
+2
-7
No files found.
client/cmakelists.txt
View file @
24eaa14b
...
...
@@ -48,7 +48,7 @@ ADD_LIBRARY(mysqlclient ../mysys/array.c ../strings/bchange.c ../strings/bmove.c
../mysys/thr_mutex.c ../mysys/typelib.c ../vio/vio.c ../vio/viosocket.c
../vio/viossl.c ../vio/viosslfactories.c ../strings/xml.c
)
ADD_DEPENDENCIES
(
mysqlclient
GenErro
r
)
ADD_DEPENDENCIES
(
mysqlclient
comp_er
r
)
ADD_EXECUTABLE
(
mysql completion_hash.cc mysql.cc readline.cc sql_string.cc
)
LINK_DIRECTORIES
(
${
MYSQL_BINARY_DIR
}
/mysys
${
MYSQL_BINARY_DIR
}
/zlib
)
TARGET_LINK_LIBRARIES
(
mysql mysqlclient mysys yassl zlib dbug yassl taocrypt wsock32
)
...
...
extra/cmakelists.txt
View file @
24eaa14b
...
...
@@ -8,16 +8,16 @@ TARGET_LINK_LIBRARIES(comp_err dbug mysys strings wsock32)
GET_TARGET_PROPERTY
(
COMP_ERR_EXE comp_err LOCATION
)
ADD_CUSTOM_TARGET
(
GenError
${
COMP_ERR_EXE
}
--charset=
${
PROJECT_SOURCE_DIR
}
/sql/share/charsets
ADD_CUSTOM_COMMAND
(
OUTPUT
${
PROJECT_SOURCE_DIR
}
/include/mysqld_error.h
COMMAND
${
COMP_ERR_EXE
}
--charset=
${
PROJECT_SOURCE_DIR
}
/sql/share/charsets
--out-dir=
${
PROJECT_SOURCE_DIR
}
/sql/share/
--header_file=
${
PROJECT_SOURCE_DIR
}
/include/mysqld_error.h
--name_file=
${
PROJECT_SOURCE_DIR
}
/include/mysqld_ername.h
--state_file=
${
PROJECT_SOURCE_DIR
}
/include/sql_state.h
--in_file=
${
PROJECT_SOURCE_DIR
}
/sql/share/errmsg.txt
DEPENDS comp_err
${
PROJECT_SOURCE_DIR
}
/sql/share/errmsg.txt
)
MAIN_DEPENDENCY comp_err
DEPENDS
${
PROJECT_SOURCE_DIR
}
/sql/share/errmsg.txt
)
ADD_EXECUTABLE
(
my_print_defaults my_print_defaults.c
)
TARGET_LINK_LIBRARIES
(
my_print_defaults strings mysys dbug taocrypt odbc32 odbccp32 wsock32
)
...
...
libmysql/cmakelists.txt
View file @
24eaa14b
...
...
@@ -45,7 +45,7 @@ ADD_LIBRARY(libmysql MODULE dll.c libmysql.def
../strings/strtoll.c ../strings/strtoull.c ../strings/strxmov.c ../strings/strxnmov.c
../mysys/thr_mutex.c ../mysys/typelib.c ../vio/vio.c ../vio/viosocket.c
../vio/viossl.c ../vio/viosslfactories.c ../strings/xml.c
)
ADD_DEPENDENCIES
(
libmysql dbug vio mysys strings
GenErro
r zlib
)
ADD_DEPENDENCIES
(
libmysql dbug vio mysys strings
comp_er
r zlib
)
TARGET_LINK_LIBRARIES
(
libmysql mysys strings wsock32
)
# ToDo: We should move the mytest.c program out in libmysql/
...
...
mysql-test/r/partition.result
View file @
24eaa14b
...
...
@@ -546,4 +546,15 @@ t1 CREATE TABLE `t1` (
`b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 PARTITION BY LIST (a) (PARTITION p1 VALUES IN (1) ENGINE = MyISAM, PARTITION p2 VALUES IN (2) ENGINE = MyISAM)
drop table t1;
create table t1 (a int unsigned not null auto_increment primary key)
partition by key(a);
alter table t1 rename t2, add c char(10), comment "no comment";
show create table t2;
Table Create Table
t2 CREATE TABLE `t2` (
`a` int(10) unsigned NOT NULL AUTO_INCREMENT,
`c` char(10) DEFAULT NULL,
PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='no comment' PARTITION BY KEY (a)
drop table t2;
End of 5.1 tests
mysql-test/t/partition.test
View file @
24eaa14b
...
...
@@ -697,4 +697,21 @@ alter table t1 add primary key (b);
show
create
table
t1
;
drop
table
t1
;
############################################
#
# Author: Mikael Ronstrom
# Date: 2006-03-01
# Purpose
# Bug 17772: Crash at ALTER TABLE with rename
# and add column + comment on
# partitioned table
#
############################################
create
table
t1
(
a
int
unsigned
not
null
auto_increment
primary
key
)
partition
by
key
(
a
);
alter
table
t1
rename
t2
,
add
c
char
(
10
),
comment
"no comment"
;
show
create
table
t2
;
drop
table
t2
;
--
echo
End
of
5.1
tests
server-tools/instance-manager/cmakelists.txt
View file @
24eaa14b
...
...
@@ -12,5 +12,5 @@ ADD_EXECUTABLE(mysqlmanager buffer.cc command.cc commands.cc guardian.cc instanc
../../sql/sql_state.c ../../sql-common/client.c ../../libmysql/get_password.c
../../libmysql/errmsg.c
)
ADD_DEPENDENCIES
(
mysqlmanager
GenErro
r
)
ADD_DEPENDENCIES
(
mysqlmanager
comp_er
r
)
TARGET_LINK_LIBRARIES
(
mysqlmanager dbug mysys strings taocrypt vio yassl zlib wsock32
)
sql/cmakelists.txt
View file @
24eaa14b
...
...
@@ -50,7 +50,7 @@ ADD_EXECUTABLE(mysqld ../sql-common/client.c derror.cc des_key_file.cc discover.
${
PROJECT_SOURCE_DIR
}
/sql/handlerton.cc
${
PROJECT_SOURCE_DIR
}
/sql/lex_hash.h
)
TARGET_LINK_LIBRARIES
(
mysqld heap myisam myisammrg innobase mysys yassl zlib dbug yassl taocrypt strings vio regex wsock32
)
ADD_DEPENDENCIES
(
mysqld
GenErro
r
)
ADD_DEPENDENCIES
(
mysqld
comp_er
r
)
# Sql Parser custom command
ADD_CUSTOM_COMMAND
(
...
...
sql/sql_lex.h
View file @
24eaa14b
...
...
@@ -761,6 +761,7 @@ typedef struct st_lex
const
uchar
*
tok_start_prev
,
*
tok_end_prev
;
char
*
length
,
*
dec
,
*
change
,
*
name
;
Table_ident
*
like_name
;
char
*
help_arg
;
char
*
backup_dir
;
/* For RESTORE/BACKUP */
char
*
to_log
;
/* For PURGE MASTER LOGS TO */
...
...
sql/sql_parse.cc
View file @
24eaa14b
...
...
@@ -2897,9 +2897,9 @@ mysql_execute_command(THD *thd)
else
{
/* regular create */
if
(
lex
->
name
)
if
(
lex
->
like_
name
)
res
=
mysql_create_like_table
(
thd
,
create_table
,
&
lex
->
create_info
,
(
Table_ident
*
)
lex
->
name
);
lex
->
like_
name
);
else
{
res
=
mysql_create_table
(
thd
,
create_table
->
db
,
...
...
sql/sql_partition.cc
View file @
24eaa14b
...
...
@@ -3741,14 +3741,14 @@ bool mysql_unpack_partition(THD *thd, const uchar *part_buf,
ha_legacy_type
(
default_db_type
)));
if
(
is_create_table_ind
)
{
if
(
old_lex
->
name
)
if
(
old_lex
->
like_
name
)
{
/*
This code is executed when we do a CREATE TABLE t1 LIKE t2
old_lex->name contains the t2 and the table we are opening has
old_lex->
like_
name contains the t2 and the table we are opening has
name t1.
*/
Table_ident
*
table_ident
=
(
Table_ident
*
)
old_lex
->
name
;
Table_ident
*
table_ident
=
old_lex
->
like_
name
;
char
*
src_db
=
table_ident
->
db
.
str
?
table_ident
->
db
.
str
:
thd
->
db
;
char
*
src_table
=
table_ident
->
table
.
str
;
char
buf
[
FN_REFLEN
];
...
...
sql/sql_yacc.yy
View file @
24eaa14b
...
...
@@ -1214,7 +1214,8 @@ create:
lex->create_info.options=$2 | $4;
lex->create_info.db_type= lex->thd->variables.table_type;
lex->create_info.default_table_charset= NULL;
lex->name=0;
lex->name= 0;
lex->like_name= 0;
}
create2
{ Lex->current_select= &Lex->select_lex; }
...
...
@@ -3272,13 +3273,13 @@ create2:
| LIKE table_ident
{
LEX *lex=Lex;
if (!(lex->
name= (char *)
$2))
if (!(lex->
like_name=
$2))
YYABORT;
}
| '(' LIKE table_ident ')'
{
LEX *lex=Lex;
if (!(lex->
name= (char *)
$3))
if (!(lex->
like_name=
$3))
YYABORT;
}
;
...
...
@@ -4712,8 +4713,8 @@ alter:
{
THD *thd= YYTHD;
LEX *lex= thd->lex;
lex->sql_command= SQLCOM_ALTER_TABLE;
lex->name= 0;
lex->sql_command= SQLCOM_ALTER_TABLE;
lex->duplicates= DUP_ERROR;
if (!lex->select_lex.add_table_to_list(thd, $4, NULL,
TL_OPTION_UPDATING))
...
...
@@ -4722,7 +4723,8 @@ alter:
lex->key_list.empty();
lex->col_list.empty();
lex->select_lex.init_order();
lex->select_lex.db=lex->name=0;
lex->select_lex.db=lex->name= 0;
lex->like_name= 0;
bzero((char*) &lex->create_info,sizeof(lex->create_info));
lex->create_info.db_type= (handlerton*) &default_hton;
lex->create_info.default_table_charset= NULL;
...
...
win/README
View file @
24eaa14b
...
...
@@ -60,16 +60,11 @@ click the build solution menu option.
Current issues
--------------
1. Dependencies are not handled correctly with the current scripts. What
this means is that a new error file may not be generated when the errmsg.txt
file changes. In this case, simply force the GenError target to build. This
should execute comp_err to generate the required files.
2. Not all configurations are currently available. i.e. Classic, Pro, Max.
1. Not all configurations are currently available. i.e. Classic, Pro, Max.
Currently, only debug and release are available. This will change in the near
future.
3
. The definitions set for features (partitioning, blackhole, etc) are not
2
. The definitions set for features (partitioning, blackhole, etc) are not
changed based on the options given with configure. This will soon be fixed
as well.
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