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
dfe65d32
Commit
dfe65d32
authored
Mar 15, 2003
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@build.mysql.com:/home/bk/mysql-4.1
into bar.mysql.r18.ru:/usr/home/bar/mysql-4.1
parents
1a8227d1
59f6e35c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
sql/sql_db.cc
sql/sql_db.cc
+4
-4
sql/sql_parse.cc
sql/sql_parse.cc
+4
-4
No files found.
sql/sql_db.cc
View file @
dfe65d32
...
@@ -108,7 +108,7 @@ static bool load_db_opt(const char *path, HA_CREATE_INFO *create)
...
@@ -108,7 +108,7 @@ static bool load_db_opt(const char *path, HA_CREATE_INFO *create)
{
{
char
*
pos
=
buf
+
nbytes
-
1
;
char
*
pos
=
buf
+
nbytes
-
1
;
/* Remove end space and control characters */
/* Remove end space and control characters */
while
(
pos
>
buf
&&
!
my_isgraph
(
system_charset_info
,
pos
[
-
1
]))
while
(
pos
>
buf
&&
!
my_isgraph
(
&
my_charset_latin1
,
pos
[
-
1
]))
pos
--
;
pos
--
;
*
pos
=
0
;
*
pos
=
0
;
if
((
pos
=
strchr
(
buf
,
'='
)))
if
((
pos
=
strchr
(
buf
,
'='
)))
...
@@ -414,8 +414,8 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
...
@@ -414,8 +414,8 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
DBUG_PRINT
(
"info"
,(
"Examining: %s"
,
file
->
name
));
DBUG_PRINT
(
"info"
,(
"Examining: %s"
,
file
->
name
));
/* Check if file is a raid directory */
/* Check if file is a raid directory */
if
(
my_isdigit
(
system_charset_info
,
file
->
name
[
0
])
&&
if
(
my_isdigit
(
&
my_charset_latin1
,
file
->
name
[
0
])
&&
my_isdigit
(
system_charset_info
,
file
->
name
[
1
])
&&
my_isdigit
(
&
my_charset_latin1
,
file
->
name
[
1
])
&&
!
file
->
name
[
2
]
&&
!
level
)
!
file
->
name
[
2
]
&&
!
level
)
{
{
char
newpath
[
FN_REFLEN
];
char
newpath
[
FN_REFLEN
];
...
@@ -440,7 +440,7 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
...
@@ -440,7 +440,7 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
continue
;
continue
;
}
}
strxmov
(
filePath
,
org_path
,
"/"
,
file
->
name
,
NullS
);
strxmov
(
filePath
,
org_path
,
"/"
,
file
->
name
,
NullS
);
if
(
db
&&
!
my_strcasecmp
(
system_charset_info
,
if
(
db
&&
!
my_strcasecmp
(
&
my_charset_latin1
,
fn_ext
(
file
->
name
),
reg_ext
))
fn_ext
(
file
->
name
),
reg_ext
))
{
{
/* Drop the table nicely */
/* Drop the table nicely */
...
...
sql/sql_parse.cc
View file @
dfe65d32
...
@@ -912,7 +912,7 @@ extern "C" pthread_handler_decl(handle_bootstrap,arg)
...
@@ -912,7 +912,7 @@ extern "C" pthread_handler_decl(handle_bootstrap,arg)
while
(
fgets
(
buff
,
thd
->
net
.
max_packet
,
file
))
while
(
fgets
(
buff
,
thd
->
net
.
max_packet
,
file
))
{
{
uint
length
=
(
uint
)
strlen
(
buff
);
uint
length
=
(
uint
)
strlen
(
buff
);
while
(
length
&&
(
my_isspace
(
system_charset_info
,
buff
[
length
-
1
])
||
while
(
length
&&
(
my_isspace
(
thd
->
charset
()
,
buff
[
length
-
1
])
||
buff
[
length
-
1
]
==
';'
))
buff
[
length
-
1
]
==
';'
))
length
--
;
length
--
;
buff
[
length
]
=
0
;
buff
[
length
]
=
0
;
...
@@ -1265,7 +1265,7 @@ restore_user:
...
@@ -1265,7 +1265,7 @@ restore_user:
ulong
length
=
thd
->
query_length
-
(
ulong
)(
thd
->
lex
.
found_colon
-
thd
->
query
);
ulong
length
=
thd
->
query_length
-
(
ulong
)(
thd
->
lex
.
found_colon
-
thd
->
query
);
/* Remove garbage at start of query */
/* Remove garbage at start of query */
while
(
my_isspace
(
system_charset_info
,
*
packet
)
&&
length
>
0
)
while
(
my_isspace
(
thd
->
charset
()
,
*
packet
)
&&
length
>
0
)
{
{
packet
++
;
packet
++
;
length
--
;
length
--
;
...
@@ -1539,14 +1539,14 @@ bool alloc_query(THD *thd, char *packet, ulong packet_length)
...
@@ -1539,14 +1539,14 @@ bool alloc_query(THD *thd, char *packet, ulong packet_length)
{
{
packet_length
--
;
// Remove end null
packet_length
--
;
// Remove end null
/* Remove garbage at start and end of query */
/* Remove garbage at start and end of query */
while
(
my_isspace
(
system_charset_info
,
packet
[
0
])
&&
packet_length
>
0
)
while
(
my_isspace
(
thd
->
charset
()
,
packet
[
0
])
&&
packet_length
>
0
)
{
{
packet
++
;
packet
++
;
packet_length
--
;
packet_length
--
;
}
}
char
*
pos
=
packet
+
packet_length
;
// Point at end null
char
*
pos
=
packet
+
packet_length
;
// Point at end null
while
(
packet_length
>
0
&&
while
(
packet_length
>
0
&&
(
pos
[
-
1
]
==
';'
||
my_isspace
(
system_charset_info
,
pos
[
-
1
])))
(
pos
[
-
1
]
==
';'
||
my_isspace
(
thd
->
charset
()
,
pos
[
-
1
])))
{
{
pos
--
;
pos
--
;
packet_length
--
;
packet_length
--
;
...
...
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