Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1bf4306c
Kaydet (Commit)
1bf4306c
authored
Mar 06, 2013
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Switch from libmysqlc library to mariadb-native-client
Change-Id: I867918bbb61b289e1ad8752e6f46705af6e85b7c
üst
499e53a9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
97 additions
and
76 deletions
+97
-76
RepositoryExternal.mk
RepositoryExternal.mk
+5
-5
config_host.mk.in
config_host.mk.in
+9
-9
configure.ac
configure.ac
+55
-55
Extension_mysql-connector-ooo.mk
mysqlc/Extension_mysql-connector-ooo.mk
+2
-2
Library_mysqlc.mk
mysqlc/Library_mysqlc.mk
+1
-1
mysqlc_connection.cxx
mysqlc/source/mysqlc_connection.cxx
+2
-2
Library_mysqlcppconn.mk
mysqlcppconn/Library_mysqlcppconn.mk
+8
-0
UnpackedTarball_mysqlcppconn.mk
mysqlcppconn/UnpackedTarball_mysqlcppconn.mk
+2
-2
mysql-connector-c++-1.1.0.patch
mysqlcppconn/patches/mysql-connector-c++-1.1.0.patch
+13
-0
No files found.
RepositoryExternal.mk
Dosyayı görüntüle @
1bf4306c
...
...
@@ -183,20 +183,20 @@ $(call gb_LinkTarget_add_libs,$(1),-liconv)
endef
ifeq ($(SYSTEM_M
YSQL
),YES)
ifeq ($(SYSTEM_M
ARIADB
),YES)
define gb_LinkTarget__use_mysql
$(call gb_LinkTarget_add_defs,$(1),\
-DSYSTEM_M
YSQL
\
-DSYSTEM_M
ARIADB
\
)
$(call gb_LinkTarget_add_libs,$(1),\
$(M
YSQL
_LIB) \
$(M
ARIADB
_LIB) \
)
$(call gb_LinkTarget_set_include,$(1),\
$(M
YSQL
_INC) \
$(M
ARIADB
_INC) \
$$(INCLUDE) \
)
endef
...
...
@@ -206,7 +206,7 @@ else
define gb_LinkTarget__use_mysql
$(call gb_LinkTarget_set_include,$(1),\
-I$(LIBM
YSQL_PATH)
/include \
-I$(LIBM
ARIADB_PATH)/mariadbclient
/include \
$$(INCLUDE) \
)
...
...
config_host.mk.in
Dosyayı görüntüle @
1bf4306c
...
...
@@ -296,9 +296,9 @@ export LIBLANGTAG_CFLAGS=$(gb_SPACE)@LIBLANGTAG_CFLAGS@
export LIBLANGTAG_LIBS=$(gb_SPACE)@LIBLANGTAG_LIBS@
export LIBLAYOUT_JAR=@LIBLAYOUT_JAR@
export LIBLOADER_JAR=@LIBLOADER_JAR@
export LIBMARIADB=@LIBMARIADB@
export LIBMARIADB_PATH=@LIBMARIADB_PATH@
export LIBMGR_X64_BINARY=@LIBMGR_X64_BINARY@
export LIBMYSQL=@LIBMYSQL@
export LIBMYSQL_PATH=@LIBMYSQL_PATH@
export LIBO_THIS_YEAR=@LIBO_THIS_YEAR@
export LIBO_VERSION_MAJOR=@LIBO_VERSION_MAJOR@
export LIBO_VERSION_MICRO=@LIBO_VERSION_MICRO@
...
...
@@ -325,6 +325,12 @@ export MACOSX_SDK_VERSION=@MACOSX_SDK_VERSION@
export MAC_OS_X_VERSION_MAX_ALLOWED=@MAC_OS_X_VERSION_MAX_ALLOWED@
export MAC_OS_X_VERSION_MIN_REQUIRED=@MAC_OS_X_VERSION_MIN_REQUIRED@
export MANDIR=@MANDIR@
export MARIADBC_MAJOR=@MARIADBC_MAJOR@
export MARIADBC_MICRO=@MARIADBC_MICRO@
export MARIADBC_MINOR=@MARIADBC_MINOR@
export MARIADB_DEFINES=@MARIADB_DEFINES@
export MARIADB_INC=@MARIADB_INC@
export MARIADB_LIB=@MARIADB_LIB@
export MD5SUM=@MD5SUM@
export MDDS_CPPFLAGS=$(gb_SPACE)@MDDS_CPPFLAGS@
export MERGELIBS=@MERGELIBS@
...
...
@@ -400,12 +406,6 @@ export MSVC_DLLS=@MSVC_DLLS@
export MSVC_DLL_PATH=@MSVC_DLL_PATH@
export MSVC80_DLLS=@MSVC80_DLLS@
export MSVC80_DLL_PATH=@MSVC80_DLL_PATH@
export MYSQLC_MAJOR=@MYSQLC_MAJOR@
export MYSQLC_MICRO=@MYSQLC_MICRO@
export MYSQLC_MINOR=@MYSQLC_MINOR@
export MYSQL_DEFINES=@MYSQL_DEFINES@
export MYSQL_INC=@MYSQL_INC@
export MYSQL_LIB=@MYSQL_LIB@
export MYTHES_CFLAGS=$(gb_SPACE)@MYTHES_CFLAGS@
export MYTHES_LIBS=$(gb_SPACE)@MYTHES_LIBS@
export NEON_CFLAGS=$(gb_SPACE)@NEON_CFLAGS@
...
...
@@ -554,7 +554,7 @@ export SYSTEM_LIBXSLT_FOR_BUILD=@SYSTEM_LIBXSLT_FOR_BUILD@
export SYSTEM_LPSOLVE=@SYSTEM_LPSOLVE@
export SYSTEM_MDDS=@SYSTEM_MDDS@
export SYSTEM_MESA_HEADERS=@SYSTEM_MESA_HEADERS@
export SYSTEM_M
YSQL=@SYSTEM_MYSQL
@
export SYSTEM_M
ARIADB=@SYSTEM_MARIADB
@
export SYSTEM_MYSQL_CPPCONN=@SYSTEM_MYSQL_CPPCONN@
export SYSTEM_MYTHES=@SYSTEM_MYTHES@
export SYSTEM_NEON=@SYSTEM_NEON@
...
...
configure.ac
Dosyayı görüntüle @
1bf4306c
...
...
@@ -608,9 +608,9 @@ AC_ARG_ENABLE(dynamic-loading,
[Disable any use of dynamic loading of code. Work in progress, use only if you are hacking on it.])
)
AC_ARG_ENABLE(ext-m
ysql
-connector,
AS_HELP_STRING([--enable-ext-m
ysql
-connector],
[Enable the build of the MySQL Connector extension.])
AC_ARG_ENABLE(ext-m
ariadb
-connector,
AS_HELP_STRING([--enable-ext-m
ariadb
-connector],
[Enable the build of the M
ariaDB/M
ySQL Connector extension.])
)
AC_ARG_ENABLE(ext-presenter-minimizer,
...
...
@@ -1298,19 +1298,19 @@ AC_ARG_WITH(system-apache-commons,
[Use Apache commons libraries already on system.]),,
[with_system_apache_commons="$with_system_jars"])
AC_ARG_WITH(system-m
ysql
,
AS_HELP_STRING([--with-system-m
ysql
],
[Use M
ySQL
libraries already on system, for building the MySQL Connector/LibreOffice
extension. If the m
ysql_config executable is not in PATH, use MYSQL
CONFIG to
AC_ARG_WITH(system-m
ariadb
,
AS_HELP_STRING([--with-system-m
ariadb
],
[Use M
ariaDB
libraries already on system, for building the MySQL Connector/LibreOffice
extension. If the m
ariadb_config executable is not in PATH, use MARIADB
CONFIG to
point to it.]),,
[with_system_m
ysql
="$with_system_libs"])
[with_system_m
ariadb
="$with_system_libs"])
AC_ARG_WITH(libm
ysql
-path,
AS_HELP_STRING([--with-libm
ysql
-path],
[Use Connector/C (libm
ysql) installation for building the
MySQL
AC_ARG_WITH(libm
ariadb
-path,
AS_HELP_STRING([--with-libm
ariadb
-path],
[Use Connector/C (libm
ariadb) installation for building the MariaDB/
MySQL
Connector/LibreOffice extension.])
[
Usage: --with-libm
ysql
-path=<absolute path to
Usage: --with-libm
ariadb
-path=<absolute path to
your Connector/C installation>
],
,)
...
...
@@ -7556,76 +7556,76 @@ AC_SUBST([MINGW_PYTHON_DLL])
AC_SUBST([MINGW_READLINE_DLL])
AC_SUBST([MINGW_TERMCAP_DLL])
AC_MSG_CHECKING([whether to build the MySQL Connector extension])
if test "x$enable_ext_m
ysql
_connector" = "xyes" -a "x$enable_extension_integration" != "xno"; then
AC_MSG_CHECKING([whether to build the M
ariaDB/M
ySQL Connector extension])
if test "x$enable_ext_m
ariadb
_connector" = "xyes" -a "x$enable_extension_integration" != "xno"; then
AC_MSG_RESULT([yes])
ENABLE_M
YSQL
C=YES
M
YSQL
C_MAJOR=1
M
YSQL
C_MINOR=0
M
YSQL
C_MICRO=1
BUILD_TYPE="$BUILD_TYPE M
YSQL
C"
ENABLE_M
ARIADB
C=YES
M
ARIADB
C_MAJOR=1
M
ARIADB
C_MINOR=0
M
ARIADB
C_MICRO=1
BUILD_TYPE="$BUILD_TYPE M
ARIADB
C"
else
AC_MSG_RESULT([no])
ENABLE_M
YSQL
C=NO
ENABLE_M
ARIADB
C=NO
fi
AC_SUBST(ENABLE_M
YSQL
C)
AC_SUBST(M
YSQL
C_MAJOR)
AC_SUBST(M
YSQL
C_MINOR)
AC_SUBST(M
YSQL
C_MICRO)
AC_SUBST(ENABLE_M
ARIADB
C)
AC_SUBST(M
ARIADB
C_MAJOR)
AC_SUBST(M
ARIADB
C_MINOR)
AC_SUBST(M
ARIADB
C_MICRO)
if test "$ENABLE_M
YSQL
C" = "YES"; then
if test "$ENABLE_M
ARIADB
C" = "YES"; then
SCPDEFS="$SCPDEFS -DWITH_EXTENSION_M
YSQL
C"
SCPDEFS="$SCPDEFS -DWITH_EXTENSION_M
ARIADB
C"
dnl ===================================================================
dnl Check for system MySQL
dnl ===================================================================
AC_MSG_CHECKING([for MySQL prerequisites])
if test "$with_system_m
ysql
" = "yes"; then
if test "$with_system_m
ariadb
" = "yes"; then
AC_MSG_RESULT([external MySQL])
SYSTEM_M
YSQL
=YES
AC_PATH_PROG( M
YSQLCONFIG, mysql
_config)
SYSTEM_M
ARIADB
=YES
AC_PATH_PROG( M
ARIADBCONFIG, mariadb
_config)
AC_MSG_CHECKING([MySQL version])
M
YSQL_VERSION=`$MYSQL
CONFIG --version`
M
YSQL_MAJOR=`$MYSQL
CONFIG --version | cut -d"." -f1`
if test "$M
YSQL
_MAJOR" -ge "5"; then
M
ARIADB_VERSION=`$MARIADB
CONFIG --version`
M
ARIADB_MAJOR=`$MARIADB
CONFIG --version | cut -d"." -f1`
if test "$M
ARIADB
_MAJOR" -ge "5"; then
AC_MSG_RESULT([OK])
else
AC_MSG_ERROR([too old, use 5.0.x or 5.1.x])
fi
AC_MSG_CHECKING([for MySQL Client library])
M
YSQL_INC=`$MYSQL
CONFIG --include`
M
YSQL_LIB=`$MYSQL
CONFIG --libs`
M
YSQL_DEFINES=`$MYSQLCONFIG --cflags | $SED -e s,$MYSQL
_INC,,`
AC_MSG_RESULT([includes $M
YSQL_INC, libraries $MYSQL
_LIB])
else
SYSTEM_M
YSQL
=NO
if test -n "$with_libm
ysql
_path"; then
AC_MSG_RESULT([external Connector/C (libm
ysql
)])
LIBM
YSQL=libmysql
.so
M
ARIADB_INC=`$MARIADB
CONFIG --include`
M
ARIADB_LIB=`$MARIADB
CONFIG --libs`
M
ARIADB_DEFINES=`$MARIADBCONFIG --cflags | $SED -e s,$MARIADB
_INC,,`
AC_MSG_RESULT([includes $M
ARIADB_INC, libraries $MARIADB
_LIB])
else
SYSTEM_M
ARIADB
=NO
if test -n "$with_libm
ariadb
_path"; then
AC_MSG_RESULT([external Connector/C (libm
ariadb
)])
LIBM
ARIADB=libmariadb
.so
if test "$_os" = "Darwin"; then
LIBM
YSQL=libmysql
.dylib
LIBM
ARIADB=libmariadb
.dylib
elif test "$_os" = "WINNT"; then
LIBM
YSQL=libmysql
.dll
LIBM
ARIADB=libmariadb
.dll
fi
AC_MSG_CHECKING([for $LIBM
YSQL
])
if test -e "$with_libm
ysql_path/lib/$LIBMYSQL
"; then
AC_MSG_CHECKING([for $LIBM
ARIADB
])
if test -e "$with_libm
ariadb_path/lib/$LIBMARIADB
"; then
AC_MSG_RESULT([found.])
PathFormat "$with_libm
ysql
_path"
LIBM
YSQL
_PATH="$formatted_path"
PathFormat "$with_libm
ariadb
_path"
LIBM
ARIADB
_PATH="$formatted_path"
else
AC_MSG_ERROR([not found. Please specify proper path in --with-libm
ysql
-path.])
AC_MSG_ERROR([not found. Please specify proper path in --with-libm
ariadb
-path.])
fi
else
AC_MSG_ERROR([not given. Please specify either --with-system-mysql or --with-libm
ysql
-path])
AC_MSG_ERROR([not given. Please specify either --with-system-mysql or --with-libm
ariadb
-path])
fi
fi
AC_SUBST(SYSTEM_M
YSQL
)
AC_SUBST(M
YSQL
_INC)
AC_SUBST(M
YSQL
_LIB)
AC_SUBST(M
YSQL
_DEFINES)
AC_SUBST(
[LIBMYSQL]
)
AC_SUBST(LIBM
YSQL
_PATH)
AC_SUBST(SYSTEM_M
ARIADB
)
AC_SUBST(M
ARIADB
_INC)
AC_SUBST(M
ARIADB
_LIB)
AC_SUBST(M
ARIADB
_DEFINES)
AC_SUBST(
LIBMARIADB
)
AC_SUBST(LIBM
ARIADB
_PATH)
AC_LANG_PUSH([C++])
dnl ===================================================================
...
...
mysqlc/Extension_mysql-connector-ooo.mk
Dosyayı görüntüle @
1bf4306c
...
...
@@ -24,9 +24,9 @@ $(eval $(call gb_Extension_add_library,mysql-connector-ooo,mysqlcppconn))
endif
# HACK: comes from Library_mysql.mk
ifeq ($(SYSTEM_M
YSQL
),NO)
ifeq ($(SYSTEM_M
ARIADB
),NO)
$(eval $(call gb_Extension_add_files,mysql-connector-ooo,,\
$(LIBM
YSQL_PATH)/lib/$(LIBMYSQL
) \
$(LIBM
ARIADB_PATH)/lib/$(LIBMARIADB
) \
))
endif
...
...
mysqlc/Library_mysqlc.mk
Dosyayı görüntüle @
1bf4306c
...
...
@@ -41,7 +41,7 @@ $(eval $(call gb_Library_add_defs,mysqlc,\
-DMYSQLC_VERSION_MAJOR=$(MYSQLC_MAJOR) \
-DMYSQLC_VERSION_MINOR=$(MYSQLC_MINOR) \
-DMYSQLC_VERSION_MICRO=$(MYSQLC_MICRO) \
$(if $(filter NO,$(SYSTEM_M
YSQL)),-DMYSQL_LIB=\"$(LIBMYSQL
)\") \
$(if $(filter NO,$(SYSTEM_M
ARIADB)),-DMYSQL_LIB=\"$(LIBMARIADB
)\") \
$(if $(filter NO,$(SYSTEM_MYSQL_CPPCONN)),\
-DCPPCONN_LIB=\"$(call gb_Library_get_runtime_filename,mysqlcppconn)\") \
))
...
...
mysqlc/source/mysqlc_connection.cxx
Dosyayı görüntüle @
1bf4306c
...
...
@@ -99,7 +99,7 @@ void SAL_CALL OConnection::release()
}
/* }}} */
#ifndef SYSTEM_M
YSQL
#ifndef SYSTEM_M
ARIADB
extern
"C"
{
void
SAL_CALL
thisModule
()
{}
}
#endif
...
...
@@ -194,7 +194,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
connProps
[
"socket"
]
=
pipe_str
;
}
#ifndef SYSTEM_M
YSQL
#ifndef SYSTEM_M
ARIADB
::
rtl
::
OUString
sMySQLClientLib
(
MYSQL_LIB
);
::
rtl
::
OUString
moduleBase
;
...
...
mysqlcppconn/Library_mysqlcppconn.mk
Dosyayı görüntüle @
1bf4306c
...
...
@@ -21,6 +21,14 @@ $(eval $(call gb_Library_use_externals,mysqlcppconn, \
boost_headers \
))
ifneq ($(OS)$(COM),WNTMSC)
$(eval $(call gb_Library_add_libs,mysqlcppconn,\
$(if $(filter-out MACOSX,$(OS)),-ldl) \
))
endif
$(eval $(call gb_Library_set_warnings_not_errors,mysqlcppconn))
$(eval $(call gb_Library_set_generated_cxx_suffix,mysqlcppconn,cpp))
...
...
mysqlcppconn/UnpackedTarball_mysqlcppconn.mk
Dosyayı görüntüle @
1bf4306c
...
...
@@ -13,14 +13,14 @@ $(eval $(call gb_UnpackedTarball_set_tarball,mysqlcppconn,$(MYSQLCPPCONN_TARBALL
$(eval $(call gb_UnpackedTarball_add_file,mysqlcppconn,cppconn/config.h,mysqlcppconn/config.h))
ifeq ($(SYSTEM_M
YSQL
),YES)
ifeq ($(SYSTEM_M
ARIADB
),YES)
$(eval $(call gb_UnpackedTarball_add_file,mysqlcppconn,driver/nativeapi/binding_config.h,mysqlcppconn/binding_static.h))
else
$(eval $(call gb_UnpackedTarball_add_file,mysqlcppconn,driver/nativeapi/binding_config.h,mysqlcppconn/binding_dynamic.h))
endif
$(eval $(call gb_UnpackedTarball_add_patches,mysqlcppconn,\
mysqlcppconn/patches/mysql-connector-c++-1.1.0.patch \
$(if $(filter NO,$(SYSTEM_M
YSQL
)), \
$(if $(filter NO,$(SYSTEM_M
ARIADB
)), \
mysqlcppconn/patches/mysql-connector-c++-1.1.0-mysql-binding-dynamic.patch) \
mysqlcppconn/patches/default_to_protocol_tcp.patch \
))
...
...
mysqlcppconn/patches/mysql-connector-c++-1.1.0.patch
Dosyayı görüntüle @
1bf4306c
...
...
@@ -101,4 +101,17 @@
#include <stack>
#include "mysql_util.h"
--- misc/mysql-connector-c++-1.1.0/driver/mysql_prepared_statement.cpp 2013-03-06 10:29:26.890721534 +0100
+++ misc/build/mysql-connector-c++-1.1.0/driver/mysql_prepared_statement.cpp 2013-03-06 10:32:02.979904080 +0100
@@ -46,6 +46,10 @@
#include "mysql_debug.h"
+#ifndef CR_INVALID_BUFFER_USE
+#define CR_INVALID_BUFFER_USE 2035
+#endif
+
namespace sql
{
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