2.5.78 DConnParameter

The DConnParameter structure specifies a parameter of a parameterized query.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

rgchName (variable)

...

pbt

reserved

wTypeSql

A

unused

paramBinding (variable)

...

rgchName (variable): A DConnUnicodeStringSegmented that specifies the name of the parameter.

pbt (3 bits): An unsigned integer that specifies the parameter type. MUST be a value from the following table:

Value

Meaning

0x0

Prompt. User is prompted for the value of the parameter.

0x1

Value. The parameter value is specified in the query.

reserved (13 bits): MUST be zero and MUST be ignored.

wTypeSql (2 bytes): An ODBCType structure that specifies the ODBC data type as returned by the ODBC provider of the data. This signed integer specifies the SQL data type.

A - fDefaultName (1 bit): A bit that specifies whether a default name has been assigned by the application to the parameter. MUST be a value from the following table:

Value

Meaning

0x0

The user specified a name for the parameter.

0x1

The application specified a name for the parameter.

unused (15 bits):  Undefined and MUST be ignored.

paramBinding (variable): A DConnParamBinding structure that specifies the parameter’s bindings.