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
c2b24cd6
Kaydet (Commit)
c2b24cd6
authored
Ock 06, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use string literals directly
Change-Id: Ia4ae5c01ae7eb976a0e9638f8bc8fe7ebab8e2cb
üst
060c2b9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
25 deletions
+12
-25
OConnection.cxx
connectivity/source/drivers/odbc/OConnection.cxx
+12
-25
No files found.
connectivity/source/drivers/odbc/OConnection.cxx
Dosyayı görüntüle @
c2b24cd6
...
...
@@ -191,68 +191,55 @@ SQLRETURN OConnection::Construct(const OUString& url,const Sequence< PropertyVal
OUString
aDSN
(
"DSN="
),
aUID
,
aPWD
,
aSysDrvSettings
;
aDSN
+=
url
.
copy
(
nLen
+
1
);
const
char
*
pUser
=
"user"
;
const
char
*
pTimeout
=
"Timeout"
;
const
char
*
pSilent
=
"Silent"
;
const
char
*
pPwd
=
"password"
;
const
char
*
pUseCatalog
=
"UseCatalog"
;
const
char
*
pSysDrv
=
"SystemDriverSettings"
;
const
char
*
pCharSet
=
"CharSet"
;
const
char
*
pParaName
=
"ParameterNameSubstitution"
;
const
char
*
pPrivName
=
"IgnoreDriverPrivileges"
;
const
char
*
pVerColName
=
"PreventGetVersionColumns"
;
// #i60273#
const
char
*
pRetrieving
=
"IsAutoRetrievingEnabled"
;
const
char
*
pRetriStmt
=
"AutoRetrievingStatement"
;
sal_Int32
nTimeout
=
20
;
bool
bSilent
=
true
;
const
PropertyValue
*
pBegin
=
info
.
getConstArray
();
const
PropertyValue
*
pEnd
=
pBegin
+
info
.
getLength
();
for
(;
pBegin
!=
pEnd
;
++
pBegin
)
{
if
(
pBegin
->
Name
.
equalsAscii
(
pTimeout
)
)
if
(
pBegin
->
Name
==
"Timeout"
)
OSL_VERIFY
(
pBegin
->
Value
>>=
nTimeout
);
else
if
(
pBegin
->
Name
.
equalsAscii
(
pSilent
)
)
else
if
(
pBegin
->
Name
==
"Silent"
)
OSL_VERIFY
(
pBegin
->
Value
>>=
bSilent
);
else
if
(
pBegin
->
Name
.
equalsAscii
(
pPrivName
)
)
else
if
(
pBegin
->
Name
==
"IgnoreDriverPrivileges"
)
OSL_VERIFY
(
pBegin
->
Value
>>=
m_bIgnoreDriverPrivileges
);
else
if
(
pBegin
->
Name
.
equalsAscii
(
pVerColName
)
)
else
if
(
pBegin
->
Name
==
"PreventGetVersionColumns"
)
OSL_VERIFY
(
pBegin
->
Value
>>=
m_bPreventGetVersionColumns
);
else
if
(
pBegin
->
Name
.
equalsAscii
(
pParaName
)
)
else
if
(
pBegin
->
Name
==
"ParameterNameSubstitution"
)
OSL_VERIFY
(
pBegin
->
Value
>>=
m_bParameterSubstitution
);
else
if
(
pBegin
->
Name
.
equalsAscii
(
pRetrieving
)
)
else
if
(
pBegin
->
Name
==
"IsAutoRetrievingEnabled"
)
{
bool
bAutoRetrievingEnabled
=
false
;
OSL_VERIFY
(
pBegin
->
Value
>>=
bAutoRetrievingEnabled
);
enableAutoRetrievingEnabled
(
bAutoRetrievingEnabled
);
}
else
if
(
pBegin
->
Name
.
equalsAscii
(
pRetriStmt
)
)
else
if
(
pBegin
->
Name
==
"AutoRetrievingStatement"
)
{
OUString
sGeneratedValueStatement
;
OSL_VERIFY
(
pBegin
->
Value
>>=
sGeneratedValueStatement
);
setAutoRetrievingStatement
(
sGeneratedValueStatement
);
}
else
if
(
pBegin
->
Name
.
equalsAscii
(
pUser
)
)
else
if
(
pBegin
->
Name
==
"user"
)
{
OSL_VERIFY
(
pBegin
->
Value
>>=
aUID
);
aDSN
=
aDSN
+
";UID="
+
aUID
;
}
else
if
(
pBegin
->
Name
.
equalsAscii
(
pPwd
)
)
else
if
(
pBegin
->
Name
==
"password"
)
{
OSL_VERIFY
(
pBegin
->
Value
>>=
aPWD
);
aDSN
=
aDSN
+
";PWD="
+
aPWD
;
}
else
if
(
pBegin
->
Name
.
equalsAscii
(
pUseCatalog
)
)
else
if
(
pBegin
->
Name
==
"UseCatalog"
)
{
OSL_VERIFY
(
pBegin
->
Value
>>=
m_bUseCatalog
);
}
else
if
(
pBegin
->
Name
.
equalsAscii
(
pSysDrv
)
)
else
if
(
pBegin
->
Name
==
"SystemDriverSettings"
)
{
OSL_VERIFY
(
pBegin
->
Value
>>=
aSysDrvSettings
);
aDSN
+=
";"
;
aDSN
+=
aSysDrvSettings
;
}
else
if
(
pBegin
->
Name
.
equalsAscii
(
pCharSet
)
)
else
if
(
pBegin
->
Name
==
"CharSet"
)
{
OUString
sIanaName
;
OSL_VERIFY
(
pBegin
->
Value
>>=
sIanaName
);
...
...
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