Exemplo n.º 1
0
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);
}
Exemplo n.º 2
0
void
trace_SQLGetDescRec (int trace_leave, int retcode,
  SQLHDESC		  DescriptorHandle,
  SQLSMALLINT		  RecNumber,
  SQLCHAR		* Name,
  SQLSMALLINT		  BufferLength,
  SQLSMALLINT		* StringLengthPtr,
  SQLSMALLINT		* TypePtr,
  SQLSMALLINT		* SubTypePtr,
  SQLLEN		* LengthPtr,
  SQLSMALLINT		* PrecisionPtr,
  SQLSMALLINT		* ScalePtr,
  SQLSMALLINT		* NullablePtr)
{
  /* Trace function */
  _trace_print_function (en_GetDescRec, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_DESC, DescriptorHandle);
  _trace_smallint (RecNumber);
  _trace_string (Name, BufferLength, StringLengthPtr, TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength);
  _trace_smallint_p (StringLengthPtr, TRACE_OUTPUT_SUCCESS);
  _trace_sql_type_p (TypePtr, TRACE_OUTPUT_SUCCESS);
  _trace_sql_subtype (TypePtr, SubTypePtr, TRACE_OUTPUT_SUCCESS);
  _trace_len_p (LengthPtr, TRACE_OUTPUT_SUCCESS);
  _trace_smallint_p (PrecisionPtr, TRACE_OUTPUT_SUCCESS);
  _trace_smallint_p (ScalePtr, TRACE_OUTPUT_SUCCESS);
  _trace_desc_null (NullablePtr, TRACE_OUTPUT_SUCCESS);
}
Exemplo n.º 3
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);
}
Exemplo n.º 4
0
void
trace_SQLDescribeColW (int trace_leave, int retcode,
  SQLHSTMT		  StatementHandle,
  SQLSMALLINT		  ColumnNumber,
  SQLWCHAR		* ColumnName,
  SQLSMALLINT		  BufferLength,
  SQLSMALLINT		* NameLengthPtr,
  SQLSMALLINT		* DataTypePtr,
  SQLULEN		* ColumnSizePtr,
  SQLSMALLINT		* DecimalDigitsPtr,
  SQLSMALLINT		* NullablePtr)
{
  /* Trace function */
  _trace_print_function (en_DescribeColW, trace_leave, retcode);
  
  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, StatementHandle);
  _trace_usmallint (ColumnNumber);
  _trace_string_w (ColumnName, BufferLength, NameLengthPtr, TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength);
  _trace_smallint_p (NameLengthPtr, TRACE_OUTPUT_SUCCESS);
  _trace_sql_type_p (DataTypePtr, TRACE_OUTPUT_SUCCESS);
  _trace_ulen_p (ColumnSizePtr, TRACE_OUTPUT_SUCCESS);
  _trace_smallint_p (DecimalDigitsPtr, TRACE_OUTPUT_SUCCESS);
  _trace_desc_null (NullablePtr, TRACE_OUTPUT_SUCCESS);
}
Exemplo n.º 5
0
void
trace_SQLGetDiagRec (int trace_leave, int retcode,
  SQLSMALLINT		  HandleType,
  SQLHANDLE		  Handle,
  SQLSMALLINT		  RecNumber,
  SQLCHAR		* SqlState,
  SQLINTEGER		* NativeErrorPtr,
  SQLCHAR		* MessageText,
  SQLSMALLINT		  BufferLength,
  SQLSMALLINT		* TextLengthPtr)
{
  /* Trace function */
  _trace_print_function (en_GetDiagRec, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handletype (HandleType);
  _trace_handle (HandleType, Handle);
  _trace_smallint (RecNumber);
  _trace_string (SqlState, SQL_NTS, NULL, TRACE_OUTPUT_SUCCESS);
  _trace_integer_p (NativeErrorPtr, TRACE_OUTPUT_SUCCESS);
  _trace_string (MessageText, BufferLength, TextLengthPtr,
      TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength);
  _trace_smallint_p (TextLengthPtr, trace_leave);
}
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);
}
Exemplo n.º 7
0
void 
trace_SQLNumParams (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLSMALLINT    	* pcpar)
{
  /* Trace function */
  _trace_print_function (en_NumParams, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);
  _trace_smallint_p (pcpar, TRACE_OUTPUT_SUCCESS);
}
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);
}
Exemplo n.º 9
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);
}
Exemplo n.º 10
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);
}