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
5677e3f2
Kaydet (Commit)
5677e3f2
authored
Şub 22, 2013
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix strings more in
1da3af5f
Change-Id: I7d4cf698721fcf972bf35babb6d53369719eed18
üst
5f3dacae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
dsntypes.cxx
dbaccess/source/core/misc/dsntypes.cxx
+14
-12
No files found.
dbaccess/source/core/misc/dsntypes.cxx
Dosyayı görüntüle @
5677e3f2
...
...
@@ -337,19 +337,21 @@ ODsnTypeCollection::TypeIterator ODsnTypeCollection::end() const
DATASOURCE_TYPE
ODsnTypeCollection
::
determineType
(
const
OUString
&
_rDsn
)
const
{
OUString
sDsn
(
comphelper
::
string
::
stripEnd
(
_rDsn
,
'*'
));
sal_
uInt16
nSeparator
=
sDsn
.
indexOf
((
sal_Unicode
)
':'
);
if
(
STRING_NOTFOUND
==
nSeparator
)
sal_
Int32
nSeparator
=
sDsn
.
indexOf
(
static_cast
<
sal_Unicode
>
(
':'
)
);
if
(
-
1
==
nSeparator
)
{
// there should be at least one such separator
OSL_FAIL
(
"ODsnTypeCollection::implDetermineType : missing the colon !"
);
return
DST_UNKNOWN
;
}
// find first :
sal_uInt16
nOracleSeparator
=
sDsn
.
indexOf
((
sal_Unicode
)
':'
,
nSeparator
+
1
);
if
(
nOracleSeparator
!=
STRING_NOTFOUND
)
sal_Int32
nOracleSeparator
=
sDsn
.
indexOf
(
static_cast
<
sal_Unicode
>
(
':'
),
nSeparator
+
1
);
if
(
-
1
!=
nOracleSeparator
)
{
nOracleSeparator
=
sDsn
.
indexOf
((
sal_Unicode
)
':'
,
nOracleSeparator
+
1
);
if
(
nOracleSeparator
!=
STRING_NOTFOUND
&&
sDsn
.
equalsIgnoreAsciiCaseAsciiL
(
"jdbc:oracle:thin"
,
nOracleSeparator
))
nOracleSeparator
=
sDsn
.
indexOf
(
static_cast
<
sal_Unicode
>
(
':'
),
nOracleSeparator
+
1
);
if
(
-
1
!=
nOracleSeparator
&&
sDsn
.
equalsIgnoreAsciiCaseAsciiL
(
"jdbc:oracle:thin"
,
nOracleSeparator
))
return
DST_ORACLE_JDBC
;
}
...
...
@@ -360,8 +362,8 @@ DATASOURCE_TYPE ODsnTypeCollection::determineType(const OUString& _rDsn) const
return
DST_EMBEDDED_HSQLDB
;
// find second :
nSeparator
=
sDsn
.
indexOf
(
(
sal_Unicode
)
':'
,
nSeparator
+
1
);
if
(
STRING_NOTFOUND
==
nSeparator
)
nSeparator
=
sDsn
.
indexOf
(
static_cast
<
sal_Unicode
>
(
':'
)
,
nSeparator
+
1
);
if
(
-
1
==
nSeparator
)
{
// at the moment only jdbc is allowed to have just one separator
OSL_FAIL
(
"ODsnTypeCollection::implDetermineType : missing the second colon !"
);
...
...
@@ -370,11 +372,11 @@ DATASOURCE_TYPE ODsnTypeCollection::determineType(const OUString& _rDsn) const
if
(
sDsn
.
equalsIgnoreAsciiCaseAsciiL
(
"sdbc:ado:"
,
nSeparator
))
{
nSeparator
=
sDsn
.
indexOf
(
(
sal_Unicode
)
':'
,
nSeparator
+
1
);
if
(
STRING_NOTFOUND
!=
nSeparator
&&
sDsn
.
equalsIgnoreAsciiCaseAsciiL
(
"sdbc:ado:access"
,
nSeparator
)
)
nSeparator
=
sDsn
.
indexOf
(
static_cast
<
sal_Unicode
>
(
':'
)
,
nSeparator
+
1
);
if
(
-
1
!=
nSeparator
&&
sDsn
.
equalsIgnoreAsciiCaseAsciiL
(
"sdbc:ado:access"
,
nSeparator
)
)
{
nSeparator
=
sDsn
.
indexOf
(
(
sal_Unicode
)
';'
,
nSeparator
+
1
);
if
(
STRING_NOTFOUND
!=
nSeparator
&&
sDsn
.
equalsIgnoreAsciiCaseAsciiL
(
"sdbc:ado:access:Provider=Microsoft.ACE.OLEDB.12.0"
,
nSeparator
)
)
nSeparator
=
sDsn
.
indexOf
(
static_cast
<
sal_Unicode
>
(
';'
)
,
nSeparator
+
1
);
if
(
-
1
!=
nSeparator
&&
sDsn
.
equalsIgnoreAsciiCaseAsciiL
(
"sdbc:ado:access:Provider=Microsoft.ACE.OLEDB.12.0"
,
nSeparator
)
)
return
DST_MSACCESS_2007
;
return
DST_MSACCESS
;
...
...
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