To avoid coping data from c data structure to ODBC data structure,
I want to bind parameter to C type. Basically, let 'ParameterValuePtr' point to a C
type. I did some test, and it seems working. I want to check if there is any factor
that I should be aware of if want to take that path. Any comments are welcome.
Aslo I can not find document about SAPDB supported SQL Data type. e.g. SQL_INTEGER,
SQL_BINARY..., can someone give me a pointer?
SQLBindParameter(
SQLHSTMT StatementHandle, /* hstmt */
SQLUSMALLINT ParameterNumber, /* ipar */
SQLSMALLINT InputOutputType, /* fParamType */
SQLSMALLINT ValueType, /* fCType */
SQLSMALLINT ParameterType, /* fSqlType */
SQLUINTEGER ColumnSize, /* cbColDef */
SQLSMALLINT DecimalDigits, /* ibScale */
SQLPOINTER ParameterValuePtr,/* rgbValue */
SQLINTEGER BufferLength, /* cbValueMax */
SQLINTEGER *FAR StrLen_or_IndPtr);/* pcbValue */
Thanks,
---
Jenny Zhang
Open Source Development Lab
15275 SW Koll Pkwy, Suite H
Beaverton, OR 97006
phone: 503-626-2455 ext. 31
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general