23#include <com/sun/star/sdbc/SQLException.hpp>
24#include <com/sun/star/util/Date.hpp>
25#include <com/sun/star/util/Time.hpp>
26#include <com/sun/star/util/DateTime.hpp>
27#include <osl/thread.h>
28#include <rtl/ustring.hxx>
29#include <com/sun/star/uno/Sequence.hxx>
30#include <rtl/textenc.h>
103 SQLSMALLINT _nHandleType,
104 const css::uno::Reference< css::uno::XInterface >& _xInterface,
105 bool _bNoFound=
true);
110 SQLHANDLE _aConnectionHandle,
113 const css::uno::Reference< css::uno::XInterface >& _xInterface,
114 rtl_TextEncoding _nTextEncoding);
119 SQLHANDLE _aConnectionHandle,
122 const css::uno::Reference< css::uno::XInterface >& _xInterface);
127 SQLHANDLE _aConnectionHandle,
129 SQLUSMALLINT &_rValue,
130 const css::uno::Reference< css::uno::XInterface >& _xInterface);
135 SQLHANDLE _aConnectionHandle,
137 SQLUINTEGER &_rValue,
138 const css::uno::Reference< css::uno::XInterface >& _xInterface);
140 static sal_Int32 MapOdbcType2Jdbc(SQLSMALLINT _nType);
141 static SQLSMALLINT jdbcTypeToOdbc(sal_Int32 jdbcType);
147 aVal.month =
x.Month;
155 aVal.minute =
x.Minutes;
156 aVal.second =
x.Seconds;
161 TIMESTAMP_STRUCT aVal;
163 aVal.month =
x.Month;
166 aVal.minute =
x.Minutes;
167 aVal.second =
x.Seconds;
168 aVal.fraction =
x.NanoSeconds;
179 static void getBindTypes(
bool _bUseWChar,
180 bool _bUseOldTimeDate,
181 SQLSMALLINT _nOdbcType,
183 SQLSMALLINT& fSqlType);
187 static OUString getStringValue(
OConnection const * _pConnection,
188 SQLHANDLE _aStatementHandle,
189 sal_Int32 columnIndex,
190 SQLSMALLINT _fSqlType,
192 const css::uno::Reference< css::uno::XInterface >& _xInterface,
193 rtl_TextEncoding _nTextEncoding);
197 static css::uno::Sequence<sal_Int8> getBytesValue(
const OConnection* _pConnection,
198 SQLHANDLE _aStatementHandle,
199 sal_Int32 columnIndex,
200 SQLSMALLINT _fSqlType,
202 const css::uno::Reference< css::uno::XInterface >& _xInterface);
206 SQLHANDLE _aStatementHandle,
207 sal_Int32 columnIndex,
210 const css::uno::Reference< css::uno::XInterface >& _xInterface,
216 static void bindValue(
OConnection const * _pConnection,
217 SQLHANDLE _aStatementHandle,
218 sal_Int32 columnIndex,
220 SQLSMALLINT _nMaxLen,
224 const css::uno::Reference< css::uno::XInterface >& _xInterface,
225 rtl_TextEncoding _nTextEncoding,
226 bool _bUseOldTimeDate);
232 SQLHANDLE _aStatementHandle,
233 sal_Int32 columnIndex,
236 const css::uno::Reference< css::uno::XInterface >& _xInterface,
239 OTools::getValue(_pConnection,_aStatementHandle,columnIndex,_nType,_bWasNull,_xInterface,&_rValue,
sizeof _rValue);
#define ThrowException(env, type, msg)
void getValue(const OConnection *_pConnection, SQLHANDLE _aStatementHandle, sal_Int32 columnIndex, SQLSMALLINT _nType, bool &_bWasNull, const css::uno::Reference< css::uno::XInterface > &_xInterface, T &_rValue)
const sal_Int32 MAX_PUT_DATA_LENGTH
#define OOO_DLLPUBLIC_ODBCBASE