blob: 88c3daee3ca0070ef4add8fcada2f60e6eddb172 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef ODBC_PARAM_FWD_H
#define ODBC_PARAM_FWD_H
#include <sqlext.h>
#include "odbc-bind.h"
namespace ODBC {
class Command;
class Param : public virtual Bind {
public:
Param();
Param(Command *, unsigned int idx);
void bind() const;
virtual SQLSMALLINT stype() const = 0; // The SQL type ID
virtual SQLINTEGER dp() const = 0; // The decimal place count
virtual const void * dataAddress() const = 0; // The address of the data
protected:
friend class Column;
mutable Command * paramCmd;
mutable unsigned int paramIdx;
mutable bool paramBound; // Has SqlBind(...) been called since last change of address?
SQLLEN dataLength;
};
}
#endif
|