#include <dcl/Config.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <ibase.h>
#include <dcl/Object.h>
#include <dcl/Numeric.h>
#include <dcl/BytesOutputStream.h>
#include <dcl/Charset.h>
#include <dcl/SQLCore.h>
#include "IBConnection.h"
#include "IBQuery.h"
#include "IBField.h"
Go to the source code of this file.
◆ __SQLTYPE_IS
#define __SQLTYPE_IS |
( |
| __sqltype | ) |
|
Value:((__sqlvar->sqltype & ~1) == __sqltype)
◆ SQLTYPE_NAME
#define SQLTYPE_NAME |
( |
| _dataType, |
|
|
| name ) |
Value:case _dataType : return L ## name
Definition at line 197 of file IBField.cpp.
◆ __ABS()
Definition at line 1031 of file IBField.cpp.
1031 {
1032 return n < 0 ? -
n :
n;
1033}
void CharsetConvertException *size_t n
◆ __dataTypeName()
const wchar_t * __dataTypeName |
( |
const XSQLVAR * | _sqlvar | ) |
|
Definition at line 199 of file IBField.cpp.
200{
201 switch(_sqlvar->sqltype & ~1) {
202 case SQL_SHORT:
203 case SQL_LONG:
204 case SQL_INT64: {
205 if (_sqlvar->sqlscale) {
206#ifdef __DCL_DEBUG
207 switch (_sqlvar->sqltype & ~1) {
211 }
212#else
213 return L"DECIMAL";
214#endif
215 }
216 else {
217 switch (_sqlvar->sqltype & ~1) {
221 }
222 }
223 }
231 case SQL_BLOB: {
232 if (_sqlvar->sqlsubtype == 1)
233 return L"BLOB(TEXT)";
234 else
235 return L"BLOB";
236 }
237 }
238 return L"Unknown Type: Driver is not Support";
239}
#define SQLTYPE_NAME(_dataType, name)
◆ __MIN()
size_t __MIN |
( |
size_t | x, |
|
|
size_t | y ) |
|
inline |
Definition at line 1223 of file IBField.cpp.
1224{
1225 return x < y ? x : y;
1226}
◆ IMPLEMENT_CLASSINFO()
Definition at line 29 of file IBField.cpp.
35{
37 __indicator = 0;
38
39
40 __maxDataSize = 0;
41 __dataSize = 0;
42}