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
5be435de
Commit
5be435de
authored
Jul 10, 2012
by
Andrei Elkin
Browse files
Options
Browse Files
Download
Plain Diff
merge from 5.1 repo.
parents
e3c8fb4a
b2131948
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1421 additions
and
1386 deletions
+1421
-1386
libmysqld/examples/CMakeLists.txt
libmysqld/examples/CMakeLists.txt
+2
-1
libmysqld/examples/Makefile.am
libmysqld/examples/Makefile.am
+2
-1
mysys/my_access.c
mysys/my_access.c
+2
-1
strings/ctype-utf8.c
strings/ctype-utf8.c
+4
-0
tests/Makefile.am
tests/Makefile.am
+1
-0
tests/mysql_client_fw.c
tests/mysql_client_fw.c
+1375
-0
tests/mysql_client_test.c
tests/mysql_client_test.c
+35
-1383
No files found.
libmysqld/examples/CMakeLists.txt
View file @
5be435de
...
@@ -18,6 +18,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
...
@@ -18,6 +18,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
${
CMAKE_SOURCE_DIR
}
/libmysqld/include
${
CMAKE_SOURCE_DIR
}
/libmysqld/include
${
CMAKE_SOURCE_DIR
}
/regex
${
CMAKE_SOURCE_DIR
}
/regex
${
CMAKE_SOURCE_DIR
}
/zlib
${
CMAKE_SOURCE_DIR
}
/zlib
${
CMAKE_SOURCE_DIR
}
/tests
${
CMAKE_SOURCE_DIR
}
/extra/yassl/include
)
${
CMAKE_SOURCE_DIR
}
/extra/yassl/include
)
# Currently does not work with DBUG, there are missing symbols reported.
# Currently does not work with DBUG, there are missing symbols reported.
...
...
libmysqld/examples/Makefile.am
View file @
5be435de
...
@@ -35,7 +35,7 @@ link_sources:
...
@@ -35,7 +35,7 @@ link_sources:
DEFS
=
-DEMBEDDED_LIBRARY
DEFS
=
-DEMBEDDED_LIBRARY
INCLUDES
=
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
-I
$(srcdir)
\
INCLUDES
=
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
-I
$(srcdir)
\
-I
$(top_srcdir)
-I
$(top_srcdir)
/client
-I
$(top_srcdir)
/regex
\
-I
$(top_srcdir)
-I
$(top_srcdir)
/client
-I
$(top_srcdir)
/regex
\
$(openssl_includes)
-I
$(top_srcdir)
/tests
$(openssl_includes)
LIBS
=
@LIBS@ @WRAPLIBS@ @CLIENT_LIBS@
$(yassl_libs)
LIBS
=
@LIBS@ @WRAPLIBS@ @CLIENT_LIBS@
$(yassl_libs)
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ ../libmysqld.a @LIBDL@
$(CXXLDFLAGS)
\
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ ../libmysqld.a @LIBDL@
$(CXXLDFLAGS)
\
@NDB_SCI_LIBS@
@NDB_SCI_LIBS@
...
@@ -51,6 +51,7 @@ mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD)
...
@@ -51,6 +51,7 @@ mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD)
mysql_client_test_embedded_LINK
=
$(CXXLINK)
mysql_client_test_embedded_LINK
=
$(CXXLINK)
nodist_mysql_client_test_embedded_SOURCES
=
mysql_client_test.c
nodist_mysql_client_test_embedded_SOURCES
=
mysql_client_test.c
mysql_client_test.o
:
$(top_srcdir)/tests/mysql_client_fw.c
# Don't update the files from bitkeeper
# Don't update the files from bitkeeper
%
::
SCCS/s.%
%
::
SCCS/s.%
mysys/my_access.c
View file @
5be435de
...
@@ -148,7 +148,8 @@ static char reserved_map[256]=
...
@@ -148,7 +148,8 @@ static char reserved_map[256]=
int
check_if_legal_tablename
(
const
char
*
name
)
int
check_if_legal_tablename
(
const
char
*
name
)
{
{
DBUG_ENTER
(
"check_if_legal_tablename"
);
DBUG_ENTER
(
"check_if_legal_tablename"
);
DBUG_RETURN
((
reserved_map
[(
uchar
)
name
[
0
]]
&
1
)
&&
DBUG_RETURN
(
name
[
0
]
!=
0
&&
name
[
1
]
!=
0
&&
(
reserved_map
[(
uchar
)
name
[
0
]]
&
1
)
&&
(
reserved_map
[(
uchar
)
name
[
1
]]
&
2
)
&&
(
reserved_map
[(
uchar
)
name
[
1
]]
&
2
)
&&
(
reserved_map
[(
uchar
)
name
[
2
]]
&
4
)
&&
(
reserved_map
[(
uchar
)
name
[
2
]]
&
4
)
&&
str_list_find
(
&
reserved_names
[
1
],
name
));
str_list_find
(
&
reserved_names
[
1
],
name
));
...
...
strings/ctype-utf8.c
View file @
5be435de
...
@@ -4326,6 +4326,10 @@ my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)),
...
@@ -4326,6 +4326,10 @@ my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)),
{
{
int
code
;
int
code
;
char
hex
[]
=
"0123456789abcdef"
;
char
hex
[]
=
"0123456789abcdef"
;
if
(
s
>=
e
)
return
MY_CS_TOOSMALL
;
if
(
wc
<
128
&&
filename_safe_char
[
wc
])
if
(
wc
<
128
&&
filename_safe_char
[
wc
])
{
{
*
s
=
(
uchar
)
wc
;
*
s
=
(
uchar
)
wc
;
...
...
tests/Makefile.am
View file @
5be435de
...
@@ -47,6 +47,7 @@ LDADD = @CLIENT_EXTRA_LDFLAGS@ \
...
@@ -47,6 +47,7 @@ LDADD = @CLIENT_EXTRA_LDFLAGS@ \
mysql_client_test_LDADD
=
$(LDADD)
$(CXXLDFLAGS)
mysql_client_test_LDADD
=
$(LDADD)
$(CXXLDFLAGS)
mysql_client_test_SOURCES
=
mysql_client_test.c
\
mysql_client_test_SOURCES
=
mysql_client_test.c
\
$(top_srcdir)
/mysys/my_memmem.c
$(top_srcdir)
/mysys/my_memmem.c
mysql_client_test.o
:
mysql_client_fw.c
insert_test_SOURCES
=
insert_test.c
insert_test_SOURCES
=
insert_test.c
select_test_SOURCES
=
select_test.c
select_test_SOURCES
=
select_test.c
...
...
tests/mysql_client_fw.c
0 → 100644
View file @
5be435de
This diff is collapsed.
Click to expand it.
tests/mysql_client_test.c
View file @
5be435de
This diff is collapsed.
Click to expand it.
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