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
16a31b39
Commit
16a31b39
authored
Jun 02, 2006
by
anna@hasky.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge anna@bk-internal.mysql.com:/home/bk/mysql-5.0
into hasky.mysql.fi:/home/anjuta/my/mysql-5.0-clean
parents
3043d29b
5459ebc5
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
4 deletions
+43
-4
.bzrignore
.bzrignore
+2
-0
include/config-win.h
include/config-win.h
+1
-0
include/my_global.h
include/my_global.h
+0
-1
mysql-test/r/create.result
mysql-test/r/create.result
+14
-0
mysql-test/t/create.test
mysql-test/t/create.test
+15
-0
mysys/mf_fn_ext.c
mysys/mf_fn_ext.c
+3
-3
sql/table.cc
sql/table.cc
+8
-0
No files found.
.bzrignore
View file @
16a31b39
...
@@ -1282,3 +1282,5 @@ extra/yassl/taocrypt/benchmark/benchmark
...
@@ -1282,3 +1282,5 @@ extra/yassl/taocrypt/benchmark/benchmark
extra/yassl/taocrypt/test/test
extra/yassl/taocrypt/test/test
extra/yassl/testsuite/testsuite
extra/yassl/testsuite/testsuite
client/mysql_upgrade
client/mysql_upgrade
sql/share/iso639-2.txt
sql/share/fixerrmsg.pl
include/config-win.h
View file @
16a31b39
...
@@ -384,6 +384,7 @@ inline double ulonglong2double(ulonglong value)
...
@@ -384,6 +384,7 @@ inline double ulonglong2double(ulonglong value)
#define FN_LIBCHAR '\\'
#define FN_LIBCHAR '\\'
#define FN_ROOTDIR "\\"
#define FN_ROOTDIR "\\"
#define FN_DEVCHAR ':'
#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 OS_FILE_LIMIT 2048
#define OS_FILE_LIMIT 2048
...
...
include/my_global.h
View file @
16a31b39
...
@@ -599,7 +599,6 @@ typedef SOCKET_SIZE_TYPE size_socket;
...
@@ -599,7 +599,6 @@ typedef SOCKET_SIZE_TYPE size_socket;
#define FN_HOMELIB '~'
/* ~/ is used as abbrev for home dir */
#define FN_HOMELIB '~'
/* ~/ is used as abbrev for home dir */
#define FN_CURLIB '.'
/* ./ is used as abbrev for current dir */
#define FN_CURLIB '.'
/* ./ is used as abbrev for current dir */
#define FN_PARENTDIR ".."
/* Parent directory; Must be a string */
#define FN_PARENTDIR ".."
/* Parent directory; Must be a string */
#define FN_DEVCHAR ':'
#ifndef FN_LIBCHAR
#ifndef FN_LIBCHAR
#ifdef __EMX__
#ifdef __EMX__
...
...
mysql-test/r/create.result
View file @
16a31b39
...
@@ -773,3 +773,17 @@ Warnings:
...
@@ -773,3 +773,17 @@ Warnings:
Warning 1071 Specified key was too long; max key length is 765 bytes
Warning 1071 Specified key was too long; max key length is 765 bytes
insert into t1 values('aaa');
insert into t1 values('aaa');
drop table t1;
drop table t1;
drop table if exists `about:text`;
create table `about:text` (
_id int not null auto_increment,
`about:text` varchar(255) not null default '',
primary key (_id)
);
show create table `about:text`;
Table Create Table
about:text CREATE TABLE `about:text` (
`_id` int(11) NOT NULL auto_increment,
`about:text` varchar(255) NOT NULL default '',
PRIMARY KEY (`_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table `about:text`;
mysql-test/t/create.test
View file @
16a31b39
...
@@ -674,4 +674,19 @@ create table t1(f1 varchar(800) binary not null, key(f1)) engine = innodb
...
@@ -674,4 +674,19 @@ create table t1(f1 varchar(800) binary not null, key(f1)) engine = innodb
insert
into
t1
values
(
'aaa'
);
insert
into
t1
values
(
'aaa'
);
drop
table
t1
;
drop
table
t1
;
#
# Bug#19479:mysqldump creates invalid dump
#
--
disable_warnings
drop
table
if
exists
`about:text`
;
--
enable_warnings
create
table
`about:text`
(
_id
int
not
null
auto_increment
,
`about:text`
varchar
(
255
)
not
null
default
''
,
primary
key
(
_id
)
);
show
create
table
`about:text`
;
drop
table
`about:text`
;
# End of 5.0 tests
# End of 5.0 tests
mysys/mf_fn_ext.c
View file @
16a31b39
...
@@ -40,14 +40,14 @@ my_string fn_ext(const char *name)
...
@@ -40,14 +40,14 @@ my_string fn_ext(const char *name)
DBUG_ENTER
(
"fn_ext"
);
DBUG_ENTER
(
"fn_ext"
);
DBUG_PRINT
(
"mfunkt"
,(
"name: '%s'"
,
name
));
DBUG_PRINT
(
"mfunkt"
,(
"name: '%s'"
,
name
));
#if defined(FN_DEVCHAR) || defined(FN_C_AFTER_DIR)
#if defined(FN_DEVCHAR) || defined(FN_C_AFTER_DIR)
|| defined(BASKSLASH_MBTAIL)
{
{
char
buff
[
FN_REFLEN
];
char
buff
[
FN_REFLEN
];
gpos
=
(
my_string
)
name
+
dirname_part
(
buff
,(
char
*
)
name
);
gpos
=
(
my_string
)
name
+
dirname_part
(
buff
,(
char
*
)
name
);
}
}
#else
#else
if
(
!
(
gpos
=
strrchr
(
name
,
FN
LIBCHAR
)))
if
(
!
(
gpos
=
strrchr
(
name
,
FN_
LIBCHAR
)))
gpos
=
name
;
gpos
=
(
my_string
)
name
;
#endif
#endif
pos
=
strchr
(
gpos
,
FN_EXTCHAR
);
pos
=
strchr
(
gpos
,
FN_EXTCHAR
);
DBUG_RETURN
(
pos
?
pos
:
strend
(
gpos
));
DBUG_RETURN
(
pos
?
pos
:
strend
(
gpos
));
...
...
sql/table.cc
View file @
16a31b39
...
@@ -1614,6 +1614,10 @@ bool check_db_name(char *name)
...
@@ -1614,6 +1614,10 @@ bool check_db_name(char *name)
if
(
*
name
==
'/'
||
*
name
==
'\\'
||
*
name
==
FN_LIBCHAR
||
if
(
*
name
==
'/'
||
*
name
==
'\\'
||
*
name
==
FN_LIBCHAR
||
*
name
==
FN_EXTCHAR
)
*
name
==
FN_EXTCHAR
)
return
1
;
return
1
;
#ifdef FN_DEVCHAR
if
(
*
name
==
FN_DEVCHAR
)
return
1
;
#endif
name
++
;
name
++
;
}
}
return
last_char_is_space
||
(
uint
)
(
name
-
start
)
>
NAME_LEN
;
return
last_char_is_space
||
(
uint
)
(
name
-
start
)
>
NAME_LEN
;
...
@@ -1656,6 +1660,10 @@ bool check_table_name(const char *name, uint length)
...
@@ -1656,6 +1660,10 @@ bool check_table_name(const char *name, uint length)
#endif
#endif
if
(
*
name
==
'/'
||
*
name
==
'\\'
||
*
name
==
FN_EXTCHAR
)
if
(
*
name
==
'/'
||
*
name
==
'\\'
||
*
name
==
FN_EXTCHAR
)
return
1
;
return
1
;
#ifdef FN_DEVCHAR
if
(
*
name
==
FN_DEVCHAR
)
return
1
;
#endif
name
++
;
name
++
;
}
}
#if defined(USE_MB) && defined(USE_MB_IDENT)
#if defined(USE_MB) && defined(USE_MB_IDENT)
...
...
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