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
944bc895
Commit
944bc895
authored
May 22, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated results & after merge fix
parent
cb7061eb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
+14
-5
.bzrignore
.bzrignore
+1
-0
mysql-test/r/create.result
mysql-test/r/create.result
+1
-1
mysql-test/r/loaddata.result
mysql-test/r/loaddata.result
+7
-0
sql/mysqld.cc
sql/mysqld.cc
+5
-4
No files found.
.bzrignore
View file @
944bc895
...
...
@@ -616,3 +616,4 @@ vio/test-ssl
vio/test-sslclient
vio/test-sslserver
vio/viotest-ssl
include/readline/*.h
mysql-test/r/create.result
View file @
944bc895
...
...
@@ -193,7 +193,7 @@ SELECT @@table_type;
GEMINI
CREATE TABLE t1 (a int not null);
Warnings:
Warning 12
59
Using storage engine MYISAM for table 't1'
Warning 12
64
Using storage engine MYISAM for table 't1'
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
...
...
mysql-test/r/loaddata.result
View file @
944bc895
drop table if exists t1;
create table t1 (a date, b date, c date not null, d date);
load data infile '../../std_data/loaddata1.dat' into table t1 fields terminated by ',';
Warnings:
Warning 1263 Data truncated for column 'a' at row 1
Warning 1263 Data truncated for column 'c' at row 1
Warning 1263 Data truncated for column 'd' at row 1
Warning 1263 Data truncated for column 'a' at row 2
Warning 1263 Data truncated for column 'b' at row 2
Warning 1263 Data truncated for column 'd' at row 2
load data infile '../../std_data/loaddata1.dat' into table t1 fields terminated by ',' IGNORE 2 LINES;
SELECT * from t1;
a b c d
...
...
sql/mysqld.cc
View file @
944bc895
...
...
@@ -300,7 +300,7 @@ char* log_error_file_ptr= log_error_file;
char
mysql_real_data_home
[
FN_REFLEN
],
language
[
LIBLEN
],
reg_ext
[
FN_EXTLEN
],
mysql_charsets_dir
[
FN_REFLEN
],
max_sort_char
,
*
mysqld_user
,
*
mysqld_chroot
,
*
opt_init_file
;
char
*
language_ptr
=
languag
e
;
char
*
language_ptr
,
*
default_collation_nam
e
;
char
mysql_data_home_buff
[
2
],
*
mysql_data_home
=
mysql_real_data_home
;
char
server_version
[
SERVER_VERSION_LENGTH
]
=
MYSQL_SERVER_VERSION
;
char
*
mysql_unix_port
,
*
opt_mysql_tmpdir
;
...
...
@@ -2035,8 +2035,8 @@ static int init_common_variables(const char *conf_file_name, int argc,
return
1
;
if
(
default_collation_name
)
{
CHARSET_INFO
*
default_collation
=
get_charset_by_name
(
default_collation_name
,
MYF
(
0
));
CHARSET_INFO
*
default_collation
;
default_collation
=
get_charset_by_name
(
default_collation_name
,
MYF
(
0
));
if
(
!
default_collation
||
!
my_charset_same
(
default_charset_info
,
default_collation
))
{
...
...
@@ -4631,6 +4631,7 @@ static void mysql_init_variables(void)
pidfile_name_ptr
=
pidfile_name
;
log_error_file_ptr
=
log_error_file
;
language_ptr
=
language
;
default_collation_name
=
0
;
mysql_data_home
=
mysql_real_data_home
;
thd_startup_options
=
(
OPTION_UPDATE_LOG
|
OPTION_AUTO_IS_NULL
|
OPTION_BIN_LOG
|
OPTION_QUOTE_SHOW_CREATE
);
...
...
@@ -4787,7 +4788,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
strmake
(
mysql_home
,
argument
,
sizeof
(
mysql_home
)
-
1
);
break
;
case
'C'
:
default_collation_name
=
NULL
;
default_collation_name
=
0
;
break
;
case
'l'
:
opt_log
=
1
;
...
...
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