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
624a116d
Kaydet (Commit)
624a116d
authored
May 28, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use OUString::startsWith()
Change-Id: I0fc77b50792e48be175ab7cc151509e097676849
üst
ebc0a155
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
YDriver.cxx
connectivity/source/drivers/mysql/YDriver.cxx
+2
-2
mysqlc_connection.cxx
mysqlc/source/mysqlc_connection.cxx
+1
-1
mysqlc_driver.cxx
mysqlc/source/mysqlc_driver.cxx
+1
-1
No files found.
connectivity/source/drivers/mysql/YDriver.cxx
Dosyayı görüntüle @
624a116d
...
...
@@ -115,12 +115,12 @@ namespace connectivity
bool
isOdbcUrl
(
const
OUString
&
_sUrl
)
{
return
_sUrl
.
copy
(
0
,
16
)
==
"sdbc:mysql:odbc:"
;
return
_sUrl
.
startsWith
(
"sdbc:mysql:odbc:"
)
;
}
bool
isNativeUrl
(
const
OUString
&
_sUrl
)
{
return
(
!
_sUrl
.
compareTo
(
OUString
(
"sdbc:mysql:mysqlc:"
),
sizeof
(
"sdbc:mysql:mysqlc:"
)
-
1
)
);
return
_sUrl
.
startsWith
(
"sdbc:mysql:mysqlc:"
);
}
T_DRIVERTYPE
lcl_getDriverType
(
const
OUString
&
_sUrl
)
...
...
mysqlc/source/mysqlc_connection.cxx
Dosyayı görüntüle @
624a116d
...
...
@@ -118,7 +118,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
// parse url. Url has the following format:
// external server: sdbc:mysqlc:[hostname]:[port]/[dbname]
if
(
!
url
.
compareTo
(
OUString
(
MYSQLC_URI_PREFIX
),
sizeof
(
MYSQLC_URI_PREFIX
)
-
1
))
{
if
(
url
.
startsWith
(
MYSQLC_URI_PREFIX
))
{
nIndex
=
12
;
}
else
{
bEmbedded
=
sal_True
;
...
...
mysqlc/source/mysqlc_driver.cxx
Dosyayı görüntüle @
624a116d
...
...
@@ -243,7 +243,7 @@ sal_Bool SAL_CALL MysqlCDriver::acceptsURL(const OUString& url)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
OSL_TRACE
(
"MysqlCDriver::acceptsURL"
);
return
(
!
url
.
compareTo
(
OUString
(
"sdbc:mysqlc:"
),
sizeof
(
"sdbc:mysqlc:"
)
-
1
)
);
return
url
.
startsWith
(
"sdbc:mysqlc:"
);
}
/* }}} */
...
...
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