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
cdb2d21c
Kaydet (Commit)
cdb2d21c
authored
Şub 14, 2012
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ODBC: align *all* the handling of SQLULEN properties with maximal ODBC size
üst
034b130b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
OStatement.cxx
connectivity/source/drivers/odbcbase/OStatement.cxx
+9
-9
OStatement.hxx
connectivity/source/inc/odbc/OStatement.hxx
+3
-3
No files found.
connectivity/source/drivers/odbcbase/OStatement.cxx
Dosyayı görüntüle @
cdb2d21c
...
@@ -756,13 +756,13 @@ sal_Int64 OStatement_Base::getMaxFieldSize() const
...
@@ -756,13 +756,13 @@ sal_Int64 OStatement_Base::getMaxFieldSize() const
return
::
rtl
::
OUString
::
createFromAscii
((
const
char
*
)
pName
);
return
::
rtl
::
OUString
::
createFromAscii
((
const
char
*
)
pName
);
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
OStatement_Base
::
setQueryTimeOut
(
sal_Int
32
seconds
)
void
OStatement_Base
::
setQueryTimeOut
(
sal_Int
64
seconds
)
{
{
OSL_ENSURE
(
m_aStatementHandle
,
"StatementHandle is null!"
);
OSL_ENSURE
(
m_aStatementHandle
,
"StatementHandle is null!"
);
setStmtOption
<
SQLULEN
,
SQL_IS_UINTEGER
>
(
SQL_ATTR_QUERY_TIMEOUT
,
seconds
);
setStmtOption
<
SQLULEN
,
SQL_IS_UINTEGER
>
(
SQL_ATTR_QUERY_TIMEOUT
,
seconds
);
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
OStatement_Base
::
setMaxRows
(
sal_Int
32
_par0
)
void
OStatement_Base
::
setMaxRows
(
sal_Int
64
_par0
)
{
{
OSL_ENSURE
(
m_aStatementHandle
,
"StatementHandle is null!"
);
OSL_ENSURE
(
m_aStatementHandle
,
"StatementHandle is null!"
);
setStmtOption
<
SQLULEN
,
SQL_IS_UINTEGER
>
(
SQL_ATTR_MAX_ROWS
,
_par0
);
setStmtOption
<
SQLULEN
,
SQL_IS_UINTEGER
>
(
SQL_ATTR_MAX_ROWS
,
_par0
);
...
@@ -872,7 +872,7 @@ void OStatement_Base::setFetchSize(sal_Int32 _par0)
...
@@ -872,7 +872,7 @@ void OStatement_Base::setFetchSize(sal_Int32 _par0)
}
}
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
OStatement_Base
::
setMaxFieldSize
(
sal_Int
32
_par0
)
void
OStatement_Base
::
setMaxFieldSize
(
sal_Int
64
_par0
)
{
{
OSL_ENSURE
(
m_aStatementHandle
,
"StatementHandle is null!"
);
OSL_ENSURE
(
m_aStatementHandle
,
"StatementHandle is null!"
);
setStmtOption
<
SQLULEN
,
SQL_IS_UINTEGER
>
(
SQL_ATTR_MAX_LENGTH
,
_par0
);
setStmtOption
<
SQLULEN
,
SQL_IS_UINTEGER
>
(
SQL_ATTR_MAX_LENGTH
,
_par0
);
...
@@ -913,9 +913,9 @@ void OStatement_Base::setUsingBookmarks(sal_Bool _bUseBookmark)
...
@@ -913,9 +913,9 @@ void OStatement_Base::setUsingBookmarks(sal_Bool _bUseBookmark)
DECL_BOOL_PROP0
(
ESCAPEPROCESSING
);
DECL_BOOL_PROP0
(
ESCAPEPROCESSING
);
DECL_PROP0
(
FETCHDIRECTION
,
sal_Int32
);
DECL_PROP0
(
FETCHDIRECTION
,
sal_Int32
);
DECL_PROP0
(
FETCHSIZE
,
sal_Int32
);
DECL_PROP0
(
FETCHSIZE
,
sal_Int32
);
DECL_PROP0
(
MAXFIELDSIZE
,
sal_Int
32
);
DECL_PROP0
(
MAXFIELDSIZE
,
sal_Int
64
);
DECL_PROP0
(
MAXROWS
,
sal_Int
32
);
DECL_PROP0
(
MAXROWS
,
sal_Int
64
);
DECL_PROP0
(
QUERYTIMEOUT
,
sal_Int
32
);
DECL_PROP0
(
QUERYTIMEOUT
,
sal_Int
64
);
DECL_PROP0
(
RESULTSETCONCURRENCY
,
sal_Int32
);
DECL_PROP0
(
RESULTSETCONCURRENCY
,
sal_Int32
);
DECL_PROP0
(
RESULTSETTYPE
,
sal_Int32
);
DECL_PROP0
(
RESULTSETTYPE
,
sal_Int32
);
DECL_BOOL_PROP0
(
USEBOOKMARKS
);
DECL_BOOL_PROP0
(
USEBOOKMARKS
);
...
@@ -997,13 +997,13 @@ void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const A
...
@@ -997,13 +997,13 @@ void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const A
switch
(
nHandle
)
switch
(
nHandle
)
{
{
case
PROPERTY_ID_QUERYTIMEOUT
:
case
PROPERTY_ID_QUERYTIMEOUT
:
setQueryTimeOut
(
comphelper
::
getINT
32
(
rValue
));
setQueryTimeOut
(
comphelper
::
getINT
64
(
rValue
));
break
;
break
;
case
PROPERTY_ID_MAXFIELDSIZE
:
case
PROPERTY_ID_MAXFIELDSIZE
:
setMaxFieldSize
(
comphelper
::
getINT
32
(
rValue
));
setMaxFieldSize
(
comphelper
::
getINT
64
(
rValue
));
break
;
break
;
case
PROPERTY_ID_MAXROWS
:
case
PROPERTY_ID_MAXROWS
:
setMaxRows
(
comphelper
::
getINT
32
(
rValue
));
setMaxRows
(
comphelper
::
getINT
64
(
rValue
));
break
;
break
;
case
PROPERTY_ID_CURSORNAME
:
case
PROPERTY_ID_CURSORNAME
:
setCursorName
(
comphelper
::
getString
(
rValue
));
setCursorName
(
comphelper
::
getString
(
rValue
));
...
...
connectivity/source/inc/odbc/OStatement.hxx
Dosyayı görüntüle @
cdb2d21c
...
@@ -99,9 +99,9 @@ namespace connectivity
...
@@ -99,9 +99,9 @@ namespace connectivity
sal_Bool
getEscapeProcessing
()
const
;
sal_Bool
getEscapeProcessing
()
const
;
template
<
typename
T
,
SQLINTEGER
BufferLength
>
T
getStmtOption
(
SQLINTEGER
fOption
,
T
dflt
=
0
)
const
;
template
<
typename
T
,
SQLINTEGER
BufferLength
>
T
getStmtOption
(
SQLINTEGER
fOption
,
T
dflt
=
0
)
const
;
void
setQueryTimeOut
(
sal_Int
32
_par0
)
;
void
setQueryTimeOut
(
sal_Int
64
_par0
)
;
void
setMaxFieldSize
(
sal_Int
32
_par0
)
;
void
setMaxFieldSize
(
sal_Int
64
_par0
)
;
void
setMaxRows
(
sal_Int
32
_par0
)
;
void
setMaxRows
(
sal_Int
64
_par0
)
;
void
setFetchDirection
(
sal_Int32
_par0
)
;
void
setFetchDirection
(
sal_Int32
_par0
)
;
void
setFetchSize
(
sal_Int32
_par0
)
;
void
setFetchSize
(
sal_Int32
_par0
)
;
void
setCursorName
(
const
::
rtl
::
OUString
&
_par0
);
void
setCursorName
(
const
::
rtl
::
OUString
&
_par0
);
...
...
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