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
f0341ac4
Commit
f0341ac4
authored
May 02, 2006
by
knielsen@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bunch of non-Linux compile failures.
parent
aaf2c26e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
4 deletions
+50
-4
VC++Files/mysql.sln
VC++Files/mysql.sln
+1
-0
VC++Files/mysys/mysys.vcproj
VC++Files/mysys/mysys.vcproj
+43
-0
mysys/my_memmem.c
mysys/my_memmem.c
+3
-2
tests/Makefile.am
tests/Makefile.am
+1
-1
tests/mysql_client_test.c
tests/mysql_client_test.c
+2
-1
No files found.
VC++Files/mysql.sln
View file @
f0341ac4
...
...
@@ -278,6 +278,7 @@ EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mysql_client_test", "tests\mysql_client_test.vcproj", "{DA224DAB-5006-42BE-BB77-16E8BE5326D5}"
ProjectSection(ProjectDependencies) = postProject
{26383276-4843-494B-8BE0-8936ED3EBAAB} = {26383276-4843-494B-8BE0-8936ED3EBAAB}
{44D9C7DC-6636-4B82-BD01-6876C64017DF} = {44D9C7DC-6636-4B82-BD01-6876C64017DF}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mysql_test_run_new", "mysql-test\mysql_test_run_new.vcproj", "{6189F838-21C6-42A1-B2D0-9146316573F7}"
...
...
VC++Files/mysys/mysys.vcproj
View file @
f0341ac4
...
...
@@ -3188,6 +3188,49 @@
PreprocessorDefinitions=
""
/>
</FileConfiguration>
</File>
<File
RelativePath=
"my_memmem.c"
>
<FileConfiguration
Name=
"Debug|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
""
/>
</FileConfiguration>
<FileConfiguration
Name=
"Max|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"2"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
""
/>
</FileConfiguration>
<FileConfiguration
Name=
"Release|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"2"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
""
/>
</FileConfiguration>
<FileConfiguration
Name=
"TLS_DEBUG|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
""
/>
</FileConfiguration>
<FileConfiguration
Name=
"TLS|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"2"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
""
/>
</FileConfiguration>
</File>
<File
RelativePath=
"my_messnc.c"
>
<FileConfiguration
...
...
mysys/my_memmem.c
View file @
f0341ac4
...
...
@@ -9,8 +9,9 @@
void
*
my_memmem
(
const
void
*
haystack
,
size_t
haystacklen
,
const
void
*
needle
,
size_t
needlelen
)
{
const
void
*
cursor
;
const
void
*
last_possible_needle_location
=
haystack
+
haystacklen
-
needlelen
;
const
unsigned
char
*
cursor
;
const
unsigned
char
*
last_possible_needle_location
=
(
unsigned
char
*
)
haystack
+
haystacklen
-
needlelen
;
/* Easy answers */
if
(
needlelen
>
haystacklen
)
return
(
NULL
);
...
...
tests/Makefile.am
View file @
f0341ac4
...
...
@@ -42,7 +42,7 @@ INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
LIBS
=
@CLIENT_LIBS@
LDADD
=
@CLIENT_EXTRA_LDFLAGS@
\
$(top_builddir)
/libmysql/libmysqlclient.la
mysql_client_test_LDADD
=
$(LDADD)
$(CXXLDFLAGS)
-
lmysys
-L
../
mysys
mysql_client_test_LDADD
=
$(LDADD)
$(CXXLDFLAGS)
-
L
../mysys
-l
mysys
mysql_client_test_SOURCES
=
mysql_client_test.c
$(yassl_dummy_link_fix)
insert_test_SOURCES
=
insert_test.c
$(yassl_dummy_link_fix)
select_test_SOURCES
=
select_test.c
$(yassl_dummy_link_fix)
...
...
tests/mysql_client_test.c
View file @
f0341ac4
...
...
@@ -14828,7 +14828,6 @@ static void test_bug15613()
static
void
test_bug17667
()
{
int
rc
;
myheader
(
"test_bug17667"
);
struct
buffer_and_length
{
const
char
*
buffer
;
const
uint
length
;
...
...
@@ -14845,6 +14844,8 @@ static void test_bug17667()
struct
buffer_and_length
*
statement_cursor
;
FILE
*
log_file
;
myheader
(
"test_bug17667"
);
for
(
statement_cursor
=
statements
;
statement_cursor
->
buffer
!=
NULL
;
statement_cursor
++
)
{
rc
=
mysql_real_query
(
mysql
,
statement_cursor
->
buffer
,
...
...
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