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
730df392
Kaydet (Commit)
730df392
authored
Mar 11, 2013
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Do not try to dlopen a static internal libmariadb
Change-Id: Ib624089418e22c050e951acc4c487572c7e0ea25
üst
6f28efc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
35 deletions
+2
-35
Library_mysqlc.mk
mysqlc/Library_mysqlc.mk
+1
-1
mysqlc_connection.cxx
mysqlc/source/mysqlc_connection.cxx
+1
-34
No files found.
mysqlc/Library_mysqlc.mk
Dosyayı görüntüle @
730df392
...
...
@@ -38,7 +38,7 @@ $(eval $(call gb_Library_use_libraries,mysqlc,\
$(eval $(call gb_Library_add_defs,mysqlc,\
-DCPPDBC_EXPORTS \
-DCPPCON_LIB_BUILD \
-DCPPCON
N
_LIB_BUILD \
-DMARIADBC_VERSION_MAJOR=$(MARIADBC_MAJOR) \
-DMARIADBC_VERSION_MINOR=$(MARIADBC_MINOR) \
-DMARIADBC_VERSION_MICRO=$(MARIADBC_MICRO) \
...
...
mysqlc/source/mysqlc_connection.cxx
Dosyayı görüntüle @
730df392
...
...
@@ -99,10 +99,6 @@ void SAL_CALL OConnection::release()
}
/* }}} */
#ifndef SYSTEM_MARIADB
extern
"C"
{
void
SAL_CALL
thisModule
()
{}
}
#endif
/* {{{ OConnection::construct() -I- */
void
OConnection
::
construct
(
const
OUString
&
url
,
const
Sequence
<
PropertyValue
>&
info
)
throw
(
SQLException
)
...
...
@@ -194,35 +190,6 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
connProps
[
"socket"
]
=
pipe_str
;
}
#ifndef SYSTEM_MARIADB
::
rtl
::
OUString
sMySQLClientLib
(
"libmariadb"
SAL_DLLEXTENSION
);
::
rtl
::
OUString
moduleBase
;
OSL_VERIFY
(
::
osl
::
Module
::
getUrlFromAddress
(
&
thisModule
,
moduleBase
)
);
::
rtl
::
OUString
sMySQLClientLibURL
;
try
{
sMySQLClientLibURL
=
::
rtl
::
Uri
::
convertRelToAbs
(
moduleBase
,
sMySQLClientLib
.
pData
);
}
catch
(
const
::
rtl
::
MalformedUriException
&
e
)
{
(
void
)
e
;
// silence compiler
#if OSL_DEBUG_LEVEL > 0
::
rtl
::
OString
sMessage
(
"OConnection::construct: malformed URI: "
);
sMessage
+=
::
rtl
::
OUStringToOString
(
e
.
getMessage
(),
osl_getThreadTextEncoding
()
);
OSL_FAIL
(
sMessage
.
getStr
()
);
#endif
}
::
rtl
::
OUString
sMySQLClientLibPath
;
osl_getSystemPathFromFileURL
(
sMySQLClientLibURL
.
pData
,
&
sMySQLClientLibPath
.
pData
);
sql
::
SQLString
mysqlLib
=
::
rtl
::
OUStringToOString
(
sMySQLClientLibPath
,
osl_getThreadTextEncoding
()
).
getStr
();
connProps
[
"clientlib"
]
=
mysqlLib
;
OSL_TRACE
(
"clientlib=%s"
,
mysqlLib
.
c_str
());
#endif
OSL_TRACE
(
"hostName=%s"
,
host_str
.
c_str
());
OSL_TRACE
(
"port=%i"
,
int
(
nPort
));
OSL_TRACE
(
"userName=%s"
,
user_str
.
c_str
());
...
...
@@ -243,7 +210,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
// Check if the server is 4.1 or above
if
(
this
->
getMysqlVersion
()
<
40100
)
{
throw
SQLException
(
::
rtl
::
OUString
(
"M
ySQL Connector/OO.org
requires MySQL Server 4.1 or above"
),
::
rtl
::
OUString
(
"M
ariaDB LibreOffice Connector
requires MySQL Server 4.1 or above"
),
*
this
,
::
rtl
::
OUString
(),
0
,
...
...
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