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
d1b8e44c
Kaydet (Commit)
d1b8e44c
authored
Ara 05, 2012
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Variable-sized datatype -> cannot predict length of needed buffer
Change-Id: I29b8c0352b06fb86e924aaf8108de6835eb9cb89
üst
752270bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
OTools.cxx
connectivity/source/drivers/odbcbase/OTools.cxx
+7
-8
No files found.
connectivity/source/drivers/odbcbase/OTools.cxx
Dosyayı görüntüle @
d1b8e44c
...
...
@@ -41,10 +41,6 @@ size_t sqlTypeLen ( SQLSMALLINT _nType )
{
switch
(
_nType
)
{
case
SQL_C_CHAR
:
return
sizeof
(
SQLCHAR
*
);
case
SQL_C_WCHAR
:
return
sizeof
(
SQLWCHAR
*
);
case
SQL_C_SSHORT
:
case
SQL_C_SHORT
:
return
sizeof
(
SQLSMALLINT
);
...
...
@@ -74,10 +70,6 @@ size_t sqlTypeLen ( SQLSMALLINT _nType )
/* UnixODBC gives this the same value as SQL_C_UBIGINT
case SQL_C_BOOKMARK:
return sizeof(BOOKMARK); */
case
SQL_C_BINARY
:
// UnixODBC gives these the same value
//case SQL_C_VARBOOKMARK:
return
sizeof
(
SQLCHAR
*
);
case
SQL_C_TYPE_DATE
:
case
SQL_C_DATE
:
return
sizeof
(
SQL_DATE_STRUCT
);
...
...
@@ -105,6 +97,13 @@ size_t sqlTypeLen ( SQLSMALLINT _nType )
case
SQL_C_INTERVAL_HOUR_TO_SECOND
:
case
SQL_C_INTERVAL_MINUTE_TO_SECOND
:
return
sizeof
(
SQL_INTERVAL_STRUCT
);
// ** Variable-sized datatypes -> cannot predict length
case
SQL_C_CHAR
:
case
SQL_C_WCHAR
:
case
SQL_C_BINARY
:
// UnixODBC gives this the same value as SQL_C_BINARY
//case SQL_C_VARBOOKMARK:
// Unknown datatype -> cannot predict length
default
:
return
static_cast
<
size_t
>
(
-
1
);
}
...
...
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