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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
88b89aaa
Commit
88b89aaa
authored
Apr 21, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for buildbot.
increase the version.
parent
b44f11c9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
14 deletions
+29
-14
VERSION
VERSION
+1
-1
cmake/zlib.cmake
cmake/zlib.cmake
+0
-1
storage/connect/CMakeLists.txt
storage/connect/CMakeLists.txt
+17
-1
storage/connect/os.h
storage/connect/os.h
+1
-1
storage/connect/value.cpp
storage/connect/value.cpp
+10
-10
No files found.
VERSION
View file @
88b89aaa
...
...
@@ -4,5 +4,5 @@
#
MYSQL_VERSION_MAJOR=10
MYSQL_VERSION_MINOR=0
MYSQL_VERSION_PATCH=
1
MYSQL_VERSION_PATCH=
2
MYSQL_VERSION_EXTRA=
cmake/zlib.cmake
View file @
88b89aaa
...
...
@@ -51,7 +51,6 @@ MACRO (MYSQL_CHECK_ZLIB_WITH_COMPRESS)
IF
(
WITH_ZLIB STREQUAL
"bundled"
)
MYSQL_USE_BUNDLED_ZLIB
()
ELSE
()
SET
(
ZLIB_FIND_QUIETLY TRUE
)
INCLUDE
(
FindZLIB
)
IF
(
ZLIB_FOUND
)
INCLUDE
(
CheckFunctionExists
)
...
...
storage/connect/CMakeLists.txt
View file @
88b89aaa
...
...
@@ -57,7 +57,7 @@ IF(UNIX)
add_definitions
(
-Wno-unused-value
)
add_definitions
(
-Wno-unused-function
)
add_definitions
(
-Wno-parentheses
)
add_definitions
(
-Wno-missing-declarations
)
#
add_definitions(-Wno-missing-declarations)
# Bar: -Wno-int-to-pointer-cast commended (does not present in gcc on sol10)
# add_definitions(-Wno-int-to-pointer-cast)
# Bar: -Wno-narrowing commented (does not present in gcc on solaris10)
...
...
@@ -234,6 +234,22 @@ IF(CONNECT_WITH_ODBC)
)
IF
(
ODBC_INCLUDE_DIR AND ODBC_LIBRARY
)
set
(
CMAKE_REQUIRED_INCLUDES
${
ODBC_INCLUDE_DIR
}
)
CHECK_CXX_SOURCE_COMPILES
(
"
#include <stdio.h>
#include <sql.h>
#include <sqlext.h>
typedef long BOOL; /* this fails with iODBC */
int main() {
SQLULEN rowofs= 0; /* this fails on older unixODBC */
SQLExtendedFetch(NULL, 0, 0, &rowofs, NULL);
return 0;
}
"
ODBC_OK
)
ENDIF
()
IF
(
ODBC_OK
)
INCLUDE_DIRECTORIES
(
${
ODBC_INCLUDE_DIR
}
)
add_definitions
(
-DODBC_SUPPORT
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
tabodbc.cpp odbconn.cpp
)
...
...
storage/connect/os.h
View file @
88b89aaa
#ifndef _OS_H_INCLUDED
#define _OS_H_INCLUDED
#if defined
__FreeBSD__
#if defined
(__FreeBSD__) || defined(__APPLE__)
typedef
off_t
off64_t
;
#define lseek64(fd, offset, whence) lseek((fd), (offset), (whence))
#define open64(path, flags, mode) open((path), (flags), (mode))
...
...
storage/connect/value.cpp
View file @
88b89aaa
...
...
@@ -1243,11 +1243,11 @@ bool DTVAL::SetFormat(PGLOBAL g, PVAL valp)
/***********************************************************************/
void
DTVAL
::
SetTimeShift
(
void
)
{
#if defined(WIN32)
struct
tm
dtm
=
{
0
,
0
,
0
,
2
,
0
,
70
,
0
,
0
,
0
}
;
#else // !WIN32
struct
tm
dtm
=
{
0
,
0
,
0
,
2
,
0
,
70
,
0
,
0
,
0
,
0
,
0
}
;
#endif // !WIN32
struct
tm
dtm
;
memset
(
&
dtm
,
0
,
sizeof
(
dtm
))
;
dtm
.
tm_mday
=
2
;
dtm
.
tm_mon
=
0
;
dtm
.
tm_year
=
70
;
Shift
=
(
int
)
mktime
(
&
dtm
)
-
86400
;
...
...
@@ -1369,11 +1369,11 @@ bool DTVAL::MakeDate(PGLOBAL g, int *val, int nval)
int
i
,
m
;
int
n
;
bool
rc
=
false
;
#if defined(WIN32)
struct
tm
datm
=
{
0
,
0
,
0
,
1
,
0
,
70
,
0
,
0
,
0
}
;
#else // !WIN32
struct
tm
datm
=
{
0
,
0
,
0
,
1
,
0
,
70
,
0
,
0
,
0
,
0
,
0
}
;
#endif // !WIN32
struct
tm
datm
;
bzero
(
&
datm
,
sizeof
(
datm
))
;
datm
.
tm_mday
=
1
;
datm
.
tm_mon
=
0
;
datm
.
tm_year
=
70
;
if
(
trace
)
htrc
(
"MakeDate from(%d,%d,%d,%d,%d,%d) nval=%d
\n
"
,
...
...
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