Ejemplo n.º 1
0
void
trace_SQLSetStmtOption (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLUSMALLINT		  fOption,
  SQLUINTEGER		  vParam)
{
  /* Trace function */
  _trace_print_function (en_SetStmtOption, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);
  _trace_stmtopt_type (fOption);
  _trace_uinteger (vParam);
}
Ejemplo n.º 2
0
void
trace_SQLSetEnvAttr (int trace_leave, int retcode,
  SQLHENV		  EnvironmentHandle,
  SQLINTEGER		  Attribute,
  SQLPOINTER		  ValuePtr,
  SQLINTEGER		  StringLength)
{
  /* Trace function */
  _trace_print_function (en_SetEnvAttr, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_ENV, EnvironmentHandle);
  _trace_envattr_type (Attribute);
  _trace_pointer (ValuePtr);
  _trace_bufferlen (StringLength);
}
Ejemplo n.º 3
0
void
trace_SQLSetScrollOptions (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLUSMALLINT		  fConcurrency,
  SQLINTEGER		  crowKeyset,
  SQLUSMALLINT		  crowRowset)
{
  /* Trace function */
  _trace_print_function (en_SetScrollOptions, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);
  _trace_scrollopt_type (fConcurrency);
  _trace_integer (crowKeyset);
  _trace_usmallint (crowRowset);
}
Ejemplo n.º 4
0
void
trace_SQLSetConnectAttrW (int trace_leave, int retcode,
  SQLHDBC		  ConnectionHandle,
  SQLINTEGER		  Attribute,
  SQLPOINTER		  ValuePtr,
  SQLINTEGER		  StringLength)
{
  /* Trace function */
  _trace_print_function (en_SetConnectAttrW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_DBC, ConnectionHandle);
  _trace_connattr_type (Attribute);
  _trace_pointer (ValuePtr);
  _trace_bufferlen (StringLength);
}
Ejemplo n.º 5
0
void 
trace_SQLGetCursorNameW (int trace_leave, int retcode,
  SQLHSTMT		  StatementHandle,
  SQLWCHAR		* CursorName,
  SQLSMALLINT		  BufferLength,
  SQLSMALLINT		* NameLengthPtr)
{
  /* Trace function */
  _trace_print_function (en_GetCursorNameW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, StatementHandle);
  _trace_string_w (CursorName, BufferLength, NameLengthPtr,
      TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength);
  _trace_smallint_p (NameLengthPtr, trace_leave);
}
Ejemplo n.º 6
0
void
trace_SQLSetDescField (int trace_leave, int retcode,
  SQLHDESC		  DescriptorHandle,
  SQLSMALLINT		  RecNumber,
  SQLSMALLINT		  FieldIdentifier,
  SQLPOINTER		  ValuePtr,
  SQLINTEGER		  BufferLength)
{
  /* Trace function */
  _trace_print_function (en_SetDescField, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_DESC, DescriptorHandle);
  _trace_smallint (RecNumber);
  _trace_descfield_type (FieldIdentifier);
  _trace_pointer (ValuePtr);
  _trace_bufferlen (BufferLength);
}
Ejemplo n.º 7
0
void
trace_SQLGetStmtAttrW (int trace_leave, int retcode,
  SQLHSTMT		  StatementHandle,
  SQLINTEGER		  Attribute,
  SQLPOINTER		  ValuePtr,
  SQLINTEGER		  BufferLength,
  SQLINTEGER		* StringLengthPtr)
{
  /* Trace function */
  _trace_print_function (en_GetStmtAttrW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, StatementHandle);
  _trace_stmtattr_type (Attribute);
  _trace_pointer (ValuePtr);
  _trace_bufferlen (BufferLength);
  _trace_integer_p (StringLengthPtr, trace_leave);
}
Ejemplo n.º 8
0
void
trace_SQLGetEnvAttr (int trace_leave, int retcode,
  SQLHENV		  EnvironmentHandle,
  SQLINTEGER		  Attribute,
  SQLPOINTER		  ValuePtr,
  SQLINTEGER	 	  BufferLength,
  SQLINTEGER		* StringLengthPtr)
{
  /* Trace function */
  _trace_print_function (en_GetEnvAttr, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_ENV, EnvironmentHandle);
  _trace_envattr_type (Attribute);
  _trace_pointer (ValuePtr);
  _trace_bufferlen (BufferLength);
  _trace_integer_p (StringLengthPtr, TRACE_OUTPUT_SUCCESS);
}
Ejemplo n.º 9
0
void
trace_SQLExtendedFetch (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLUSMALLINT		  fFetchType,
  SQLLEN		  irow,
  SQLULEN 	 	* pcrow,
  SQLUSMALLINT    	* rgfRowStatus)
{
  /* Trace function */
  _trace_print_function (en_ExtendedFetch, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);
  _trace_fetchtype (fFetchType);
  _trace_len (irow);
  _trace_ulen_p (pcrow, TRACE_OUTPUT_SUCCESS);
  _trace_usmallint_p (rgfRowStatus, 0);
}
Ejemplo n.º 10
0
void
trace_SQLGetInfoW (int trace_leave, int retcode,
  SQLHDBC		  hdbc,
  SQLUSMALLINT		  fInfoType,
  SQLPOINTER		  rgbInfoValue,
  SQLSMALLINT		  cbInfoValueMax,
  SQLSMALLINT    	* pcbInfoValue)
{
  /* Trace function */
  _trace_print_function (en_GetInfoW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_DBC, hdbc);
  _trace_getinfo (fInfoType, rgbInfoValue, cbInfoValueMax, pcbInfoValue,
  	TRACE_OUTPUT_SUCCESS, 'W');
  _trace_smallint (cbInfoValueMax);
  _trace_smallint_p (pcbInfoValue, TRACE_OUTPUT_SUCCESS);
}
Ejemplo n.º 11
0
void
trace_SQLGetDescFieldW (int trace_leave, int retcode,
  SQLHDESC		  DescriptorHandle,
  SQLSMALLINT		  RecNumber,
  SQLSMALLINT		  FieldIdentifier,
  SQLPOINTER		  ValuePtr,
  SQLINTEGER		  BufferLength,
  SQLINTEGER		* StringLengthPtr)
{
  /* Trace function */
  _trace_print_function (en_GetDescFieldW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_DESC, DescriptorHandle);
  _trace_smallint (RecNumber);
  _trace_descfield_type (FieldIdentifier);
  _trace_pointer (ValuePtr);
  _trace_bufferlen (BufferLength);
  _trace_integer_p (StringLengthPtr, TRACE_OUTPUT_SUCCESS);
}
Ejemplo n.º 12
0
void
trace_SQLGetData (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLUSMALLINT		  icol,
  SQLSMALLINT		  fCType,
  SQLPOINTER		  rgbValue,
  SQLLEN		  cbValueMax,
  SQLLEN	    	* pcbValue)
{
  /* Trace function */
  _trace_print_function (en_GetData, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);
  _trace_usmallint (icol);
  _trace_c_type (fCType);
  _trace_data (fCType, rgbValue, cbValueMax, pcbValue, TRACE_OUTPUT_SUCCESS);
  _trace_len (cbValueMax);
  _trace_len_p (pcbValue, TRACE_OUTPUT_SUCCESS);
}
Ejemplo n.º 13
0
void 
trace_SQLDescribeParam (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLUSMALLINT		  ipar,
  SQLSMALLINT 	 	* pfSqlType,
  SQLULEN	   	* pcbColDef,
  SQLSMALLINT  		* pibScale,
  SQLSMALLINT  		* pfNullable)
{
  /* Trace function */
  _trace_print_function (en_DescribeParam, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);
  _trace_usmallint (ipar);
  _trace_sql_type_p (pfSqlType, TRACE_OUTPUT_SUCCESS);
  _trace_ulen_p (pcbColDef, TRACE_OUTPUT_SUCCESS);
  _trace_smallint_p (pibScale, TRACE_OUTPUT_SUCCESS);
  _trace_smallint_p (pfNullable, TRACE_OUTPUT_SUCCESS);
}
Ejemplo n.º 14
0
void
trace_SQLBrowseConnect (int trace_leave, int retcode,
  SQLHDBC		  ConnectionHandle,
  SQLCHAR 		* InConnectionString,
  SQLSMALLINT		  StringLength1,
  SQLCHAR		* OutConnectionString,
  SQLSMALLINT		  BufferLength,
  SQLSMALLINT		* StringLength2Ptr)
{
  /* Trace function */
  _trace_print_function (en_BrowseConnect, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_DBC, ConnectionHandle);
  _trace_string (InConnectionString, StringLength1, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", StringLength1);
  _trace_string (OutConnectionString, BufferLength, StringLength2Ptr,
      TRACE_OUTPUT_SUCCESS);
  _trace_smallint (BufferLength);
  _trace_smallint_p (StringLength2Ptr, TRACE_OUTPUT_SUCCESS);
}
Ejemplo n.º 15
0
void 
trace_SQLTablePrivileges (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLCHAR    		* szTableQualifier,
  SQLSMALLINT		  cbTableQualifier,
  SQLCHAR    		* szTableOwner,
  SQLSMALLINT		  cbTableOwner,
  SQLCHAR    		* szTableName,
  SQLSMALLINT		  cbTableName)
{
  /* Trace function */
  _trace_print_function (en_Tables, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);
  _trace_string (szTableQualifier, cbTableQualifier, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableQualifier);
  _trace_string (szTableOwner, cbTableOwner, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableOwner);
  _trace_string (szTableName, cbTableName, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableName);
}
Ejemplo n.º 16
0
void
trace_SQLProcedures (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLCHAR    		* szProcQualifier,
  SQLSMALLINT		  cbProcQualifier,
  SQLCHAR    		* szProcOwner,
  SQLSMALLINT		  cbProcOwner,
  SQLCHAR    		* szProcName,
  SQLSMALLINT		  cbProcName)
{
  /* Trace function */
  _trace_print_function (en_Procedures, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);

  _trace_string (szProcQualifier, cbProcQualifier, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbProcQualifier);
  _trace_string (szProcOwner, cbProcOwner, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbProcOwner);
  _trace_string (szProcName, cbProcName, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbProcName);
}
Ejemplo n.º 17
0
void
trace_SQLForeignKeysW (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLWCHAR    		* szPkTableQualifier,
  SQLSMALLINT		  cbPkTableQualifier,
  SQLWCHAR    		* szPkTableOwner,
  SQLSMALLINT		  cbPkTableOwner,
  SQLWCHAR    		* szPkTableName,
  SQLSMALLINT		  cbPkTableName,
  SQLWCHAR    		* szFkTableQualifier,
  SQLSMALLINT		  cbFkTableQualifier,
  SQLWCHAR    		* szFkTableOwner,
  SQLSMALLINT		  cbFkTableOwner,
  SQLWCHAR    		* szFkTableName,
  SQLSMALLINT		  cbFkTableName)
{
  /* Trace function */
  _trace_print_function (en_ForeignKeysW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);

  _trace_string_w (szPkTableQualifier, cbPkTableQualifier, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbPkTableQualifier);
  _trace_string_w (szPkTableOwner, cbPkTableOwner, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbPkTableOwner);
  _trace_string_w (szPkTableName, cbPkTableName, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbPkTableName);

  _trace_string_w (szFkTableQualifier, cbFkTableQualifier, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbFkTableQualifier);
  _trace_string_w (szFkTableOwner, cbFkTableOwner, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbFkTableOwner);
  _trace_string_w (szFkTableName, cbFkTableName, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbFkTableName);
}