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
cd2de0a5
Commit
cd2de0a5
authored
Jul 01, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed testcases and bug introduced by last changeset
parent
baf9baba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
mysql-test/r/func_gconcat.result
mysql-test/r/func_gconcat.result
+1
-1
mysql-test/r/grant_cache.result
mysql-test/r/grant_cache.result
+1
-1
mysys/mf_loadpath.c
mysys/mf_loadpath.c
+6
-3
No files found.
mysql-test/r/func_gconcat.result
View file @
cd2de0a5
...
@@ -169,7 +169,7 @@ select REQ_ID, Group_Concat(URL) as URL from T_URL, T_REQUEST where
...
@@ -169,7 +169,7 @@ select REQ_ID, Group_Concat(URL) as URL from T_URL, T_REQUEST where
T_REQUEST.URL_ID = T_URL.URL_ID group by REQ_ID;
T_REQUEST.URL_ID = T_URL.URL_ID group by REQ_ID;
REQ_ID URL
REQ_ID URL
1 www.host.com
1 www.host.com
5 www.
host.com,www.google.com,www.help
.com
5 www.
google.com,www.help.com,www.host
.com
drop table T_URL;
drop table T_URL;
drop table T_REQUEST;
drop table T_REQUEST;
select group_concat(sum(a)) from t1 group by grp;
select group_concat(sum(a)) from t1 group by grp;
...
...
mysql-test/r/grant_cache.result
View file @
cd2de0a5
...
@@ -122,7 +122,7 @@ select "user4";
...
@@ -122,7 +122,7 @@ select "user4";
user4
user4
user4
user4
select a from t1;
select a from t1;
ERROR
42
000: No Database Selected
ERROR
3D
000: No Database Selected
select * from mysqltest.t1,test.t1;
select * from mysqltest.t1,test.t1;
a b c a
a b c a
1 1 1 test.t1
1 1 1 test.t1
...
...
mysys/mf_loadpath.c
View file @
cd2de0a5
...
@@ -28,6 +28,7 @@ my_string my_load_path(my_string to, const char *path,
...
@@ -28,6 +28,7 @@ my_string my_load_path(my_string to, const char *path,
const
char
*
own_path_prefix
)
const
char
*
own_path_prefix
)
{
{
char
buff
[
FN_REFLEN
];
char
buff
[
FN_REFLEN
];
int
is_cur
;
DBUG_ENTER
(
"my_load_path"
);
DBUG_ENTER
(
"my_load_path"
);
DBUG_PRINT
(
"enter"
,(
"path: %s prefix: %s"
,
path
,
DBUG_PRINT
(
"enter"
,(
"path: %s prefix: %s"
,
path
,
own_path_prefix
?
own_path_prefix
:
""
));
own_path_prefix
?
own_path_prefix
:
""
));
...
@@ -35,12 +36,14 @@ my_string my_load_path(my_string to, const char *path,
...
@@ -35,12 +36,14 @@ my_string my_load_path(my_string to, const char *path,
if
((
path
[
0
]
==
FN_HOMELIB
&&
path
[
1
]
==
FN_LIBCHAR
)
||
if
((
path
[
0
]
==
FN_HOMELIB
&&
path
[
1
]
==
FN_LIBCHAR
)
||
test_if_hard_path
(
path
))
test_if_hard_path
(
path
))
VOID
(
strmov
(
buff
,
path
));
VOID
(
strmov
(
buff
,
path
));
else
if
((
path
[
0
]
==
FN_CURLIB
&&
path
[
1
]
==
FN_LIBCHAR
)
||
else
if
((
is_cur
=
(
path
[
0
]
==
FN_CURLIB
&&
path
[
1
]
==
FN_LIBCHAR
)
)
||
(
is_prefix
((
gptr
)
path
,
FN_PARENTDIR
))
||
(
is_prefix
((
gptr
)
path
,
FN_PARENTDIR
))
||
!
own_path_prefix
)
!
own_path_prefix
)
{
{
if
(
!
my_getwd
(
buff
,(
uint
)
(
FN_REFLEN
+
2
-
strlen
(
path
)),
MYF
(
0
)))
if
(
is_cur
)
VOID
(
strcat
(
buff
,
path
+
2
));
is_cur
=
2
;
/* Remove current dir */
if
(
!
my_getwd
(
buff
,(
uint
)
(
FN_REFLEN
-
strlen
(
path
)
+
is_cur
),
MYF
(
0
)))
VOID
(
strcat
(
buff
,
path
+
is_cur
));
else
else
VOID
(
strmov
(
buff
,
path
));
/* Return org file name */
VOID
(
strmov
(
buff
,
path
));
/* Return org file name */
}
}
...
...
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