コード例 #1
0
ファイル: Drivers.c プロジェクト: tws67/bayonne-cygwin
void
trace_SQLDrivers (int trace_leave, int retcode,
  SQLHENV		  EnvironmentHandle,
  SQLUSMALLINT		  Direction,
  SQLCHAR		* DriverDescription,
  SQLSMALLINT		  BufferLength1,
  SQLSMALLINT		* DescriptionLengthPtr,
  SQLCHAR		* DriverAttributes,
  SQLSMALLINT		  BufferLength2,
  SQLSMALLINT		* AttributesLengthPtr)
{
  /* Trace function */
  _trace_print_function (en_Drivers, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_ENV, EnvironmentHandle);
  _trace_direction (Direction);
  _trace_string (DriverDescription, BufferLength1, DescriptionLengthPtr,
      TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength1);
  _trace_smallint_p (DescriptionLengthPtr, TRACE_OUTPUT_SUCCESS);
  _trace_string (DriverAttributes, BufferLength2, AttributesLengthPtr,
      TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength2);
  _trace_smallint_p (AttributesLengthPtr, TRACE_OUTPUT_SUCCESS);
}
コード例 #2
0
void
trace_SQLDataSources (int trace_leave, int retcode,
  SQLHENV		  EnvironmentHandle,
  SQLUSMALLINT		  Direction,
  SQLCHAR		* ServerName,
  SQLSMALLINT		  BufferLength1,
  SQLSMALLINT		* NameLength1Ptr,
  SQLCHAR		* Description,
  SQLSMALLINT		  BufferLength2,
  SQLSMALLINT		* NameLength2Ptr)
{
  /* Trace function */
  _trace_print_function (en_DataSources, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_ENV, EnvironmentHandle);
  _trace_direction (Direction);
  _trace_string (ServerName, BufferLength1, NameLength1Ptr,
      TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength1);
  _trace_smallint_p (NameLength1Ptr, TRACE_OUTPUT_SUCCESS);
  _trace_string (Description, BufferLength2, NameLength2Ptr,
      TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength2);
  _trace_smallint_p (NameLength2Ptr, TRACE_OUTPUT_SUCCESS);
}