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
f98a193a
Kaydet (Commit)
f98a193a
authored
Tem 22, 2013
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Implement the first parts of FPreparedStatement.
Change-Id: Iad9561fa6b200ce5efcacc4c0b7b822aaaf9adb0
üst
291b8796
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
13 deletions
+14
-13
FPreparedStatement.cxx
connectivity/source/drivers/firebird/FPreparedStatement.cxx
+0
-0
FPreparedStatement.hxx
connectivity/source/drivers/firebird/FPreparedStatement.hxx
+10
-9
FStatement.cxx
connectivity/source/drivers/firebird/FStatement.cxx
+4
-2
FStatement.hxx
connectivity/source/drivers/firebird/FStatement.hxx
+0
-2
No files found.
connectivity/source/drivers/firebird/FPreparedStatement.cxx
Dosyayı görüntüle @
f98a193a
This diff is collapsed.
Click to expand it.
connectivity/source/drivers/firebird/FPreparedStatement.hxx
Dosyayı görüntüle @
f98a193a
...
@@ -73,21 +73,22 @@ namespace connectivity
...
@@ -73,21 +73,22 @@ namespace connectivity
};
};
::
std
::
vector
<
Parameter
>
m_aParameters
;
::
std
::
vector
<
Parameter
>
m_aParameters
;
//====================================================================
// Data attributes
//====================================================================
TTypeInfoVector
m_aTypeInfo
;
// Hashtable containing an entry
TTypeInfoVector
m_aTypeInfo
;
// Hashtable containing an entry
// for each row returned by
// for each row returned by
// DatabaseMetaData.getTypeInfo.
// DatabaseMetaData.getTypeInfo.
sal_Int32
m_nNumParams
;
// Number of parameter markers
// for the prepared statement
::
rtl
::
OUString
m_sSqlStatement
;
::
rtl
::
OUString
m_sSqlStatement
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XResultSetMetaData
>
m_xMetaData
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XResultSetMetaData
>
m_xMetaData
;
sal_Bool
m_bPrepared
;
void
checkParameterIndex
(
sal_Int32
_parameterIndex
);
isc_stmt_handle
m_statementHandle
;
XSQLDA
*
m_pOutSqlda
;
XSQLDA
*
m_pInSqlda
;
void
checkParameterIndex
(
sal_Int32
nParameterIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
);
void
ensurePrepared
()
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
);
protected
:
protected
:
virtual
void
SAL_CALL
setFastPropertyValue_NoBroadcast
(
sal_Int32
nHandle
,
virtual
void
SAL_CALL
setFastPropertyValue_NoBroadcast
(
sal_Int32
nHandle
,
...
@@ -117,7 +118,7 @@ namespace connectivity
...
@@ -117,7 +118,7 @@ namespace connectivity
virtual
sal_Bool
SAL_CALL
execute
(
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
sal_Bool
SAL_CALL
execute
(
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XConnection
>
SAL_CALL
getConnection
(
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XConnection
>
SAL_CALL
getConnection
(
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XParameters
// XParameters
virtual
void
SAL_CALL
setNull
(
sal_Int32
p
arameterIndex
,
sal_Int32
sqlType
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setNull
(
sal_Int32
nP
arameterIndex
,
sal_Int32
sqlType
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setObjectNull
(
sal_Int32
parameterIndex
,
sal_Int32
sqlType
,
const
::
rtl
::
OUString
&
typeName
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setObjectNull
(
sal_Int32
parameterIndex
,
sal_Int32
sqlType
,
const
::
rtl
::
OUString
&
typeName
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setBoolean
(
sal_Int32
parameterIndex
,
sal_Bool
x
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setBoolean
(
sal_Int32
parameterIndex
,
sal_Bool
x
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setByte
(
sal_Int32
parameterIndex
,
sal_Int8
x
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setByte
(
sal_Int32
parameterIndex
,
sal_Int8
x
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
...
...
connectivity/source/drivers/firebird/FStatement.cxx
Dosyayı görüntüle @
f98a193a
...
@@ -210,7 +210,7 @@ OUString OStatement_Base::sanitizeSqlString(const OUString& sqlIn)
...
@@ -210,7 +210,7 @@ OUString OStatement_Base::sanitizeSqlString(const OUString& sqlIn)
{
{
// TODO: verify this is all we need.
// TODO: verify this is all we need.
static
const
sal_Unicode
pattern
(
'"'
);
static
const
sal_Unicode
pattern
(
'"'
);
static
const
sal_Unicode
empty
(
'
\'
'
);
static
const
sal_Unicode
empty
(
'
'
);
return
sqlIn
.
replace
(
pattern
,
empty
);
return
sqlIn
.
replace
(
pattern
,
empty
);
}
}
...
@@ -297,11 +297,13 @@ int OStatement_Base::prepareAndDescribeStatement(const OUString& sqlIn,
...
@@ -297,11 +297,13 @@ int OStatement_Base::prepareAndDescribeStatement(const OUString& sqlIn,
return
aErr
;
return
aErr
;
}
}
uno
::
Reference
<
XResultSet
>
SAL_CALL
OStatement_Base
::
executeQuery
(
const
OUString
&
sql
)
throw
(
SQLException
,
RuntimeException
)
uno
::
Reference
<
XResultSet
>
SAL_CALL
OStatement_Base
::
executeQuery
(
const
OUString
&
sql
In
)
throw
(
SQLException
,
RuntimeException
)
{
{
MutexGuard
aGuard
(
m_pConnection
->
getMutex
());
MutexGuard
aGuard
(
m_pConnection
->
getMutex
());
checkDisposed
(
OStatement_BASE
::
rBHelper
.
bDisposed
);
checkDisposed
(
OStatement_BASE
::
rBHelper
.
bDisposed
);
const
OUString
sql
=
sanitizeSqlString
(
sqlIn
);
XSQLDA
*
pOutSqlda
=
0
;
XSQLDA
*
pOutSqlda
=
0
;
isc_stmt_handle
aStatementHandle
=
0
;
isc_stmt_handle
aStatementHandle
=
0
;
int
aErr
=
0
;
int
aErr
=
0
;
...
...
connectivity/source/drivers/firebird/FStatement.hxx
Dosyayı görüntüle @
f98a193a
...
@@ -77,7 +77,6 @@ namespace connectivity
...
@@ -77,7 +77,6 @@ namespace connectivity
OConnection
*
m_pConnection
;
OConnection
*
m_pConnection
;
XSQLDA
*
m_INsqlda
;
ISC_STATUS_ARRAY
m_statusVector
;
ISC_STATUS_ARRAY
m_statusVector
;
protected
:
protected
:
...
@@ -146,7 +145,6 @@ namespace connectivity
...
@@ -146,7 +145,6 @@ namespace connectivity
// other methods
// other methods
OConnection
*
getOwnConnection
()
const
{
return
m_pConnection
;}
OConnection
*
getOwnConnection
()
const
{
return
m_pConnection
;}
inline
XSQLDA
*
getINsqlda
()
const
{
return
m_INsqlda
;
}
};
};
class
OStatement_BASE2
:
public
OStatement_Base
class
OStatement_BASE2
:
public
OStatement_Base
...
...
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