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
2f54f2a4
Kaydet (Commit)
2f54f2a4
authored
Ara 25, 2012
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#58693 ODBC SQLGetData returns byte length, not data size
Change-Id: Icd2f6503d9452c36f858180e4193af993ae7e288
üst
26eaea11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
OTools.cxx
connectivity/source/drivers/odbcbase/OTools.cxx
+3
-1
No files found.
connectivity/source/drivers/odbcbase/OTools.cxx
Dosyayı görüntüle @
2f54f2a4
...
@@ -447,6 +447,8 @@ Sequence<sal_Int8> OTools::getBytesValue(const OConnection* _pConnection,
...
@@ -447,6 +447,8 @@ Sequence<sal_Int8> OTools::getBytesValue(const OConnection* _pConnection,
return
::
rtl
::
OUString
();
return
::
rtl
::
OUString
();
SQLLEN
nReadChars
;
SQLLEN
nReadChars
;
OSL_ENSURE
(
(
pcbValue
<
0
)
||
(
pcbValue
%
2
==
0
),
"ODBC: SQLGetData of SQL_C_WCHAR returned odd number of bytes"
);
if
(
(
pcbValue
==
SQL_NO_TOTAL
)
||
(
pcbValue
>=
nMaxLen
)
)
if
(
(
pcbValue
==
SQL_NO_TOTAL
)
||
(
pcbValue
>=
nMaxLen
)
)
{
{
// we filled the buffer; remove the terminating null character
// we filled the buffer; remove the terminating null character
...
@@ -459,7 +461,7 @@ Sequence<sal_Int8> OTools::getBytesValue(const OConnection* _pConnection,
...
@@ -459,7 +461,7 @@ Sequence<sal_Int8> OTools::getBytesValue(const OConnection* _pConnection,
}
}
else
else
{
{
nReadChars
=
pcbValue
;
nReadChars
=
pcbValue
/
sizeof
(
sal_Unicode
)
;
}
}
aData
.
append
(
waCharArray
,
nReadChars
);
aData
.
append
(
waCharArray
,
nReadChars
);
...
...
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