예제 #1
0
void
trace_SQLConnectW (int trace_leave, int retcode,
  SQLHDBC		  hdbc,
  SQLWCHAR  		* szDSN,
  SQLSMALLINT		  cbDSN,
  SQLWCHAR  		* szUID,
  SQLSMALLINT		  cbUID,
  SQLWCHAR  		* szAuthStr,
  SQLSMALLINT		  cbAuthStr)
{
  /* Trace function */
  _trace_print_function (en_ConnectW, trace_leave, retcode);

  /* Hide plaintext passwords */
  szAuthStr = (SQLWCHAR *) L"****";

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_DBC, hdbc);
  _trace_string_w (szDSN, cbDSN, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbDSN);
  _trace_string_w (szUID, cbUID, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbDSN);
  _trace_string_w (szAuthStr, SQL_NTS, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbAuthStr);
}
예제 #2
0
파일: Tables.c 프로젝트: MavenRain/iODBC
void 
trace_SQLTablesW (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLWCHAR    		* szTableQualifier,
  SQLSMALLINT		  cbTableQualifier,
  SQLWCHAR    		* szTableOwner,
  SQLSMALLINT		  cbTableOwner,
  SQLWCHAR    		* szTableName,
  SQLSMALLINT		  cbTableName,
  SQLWCHAR    		* szTableType,
  SQLSMALLINT		  cbTableType)
{
  /* Trace function */
  _trace_print_function (en_TablesW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);
  _trace_string_w (szTableQualifier, cbTableQualifier, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableQualifier);
  _trace_string_w (szTableOwner, cbTableOwner, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableOwner);
  _trace_string_w (szTableName, cbTableName, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableName);
  _trace_string_w (szTableType, cbTableType, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableType);
}
예제 #3
0
void
trace_SQLGetDiagRecW (int trace_leave, int retcode,
  SQLSMALLINT		  HandleType,
  SQLHANDLE		  Handle,
  SQLSMALLINT		  RecNumber,
  SQLWCHAR		* SqlState,
  SQLINTEGER		* NativeErrorPtr,
  SQLWCHAR		* MessageText,
  SQLSMALLINT		  BufferLength,
  SQLSMALLINT		* TextLengthPtr)
{
  /* Trace function */
  _trace_print_function (en_GetDiagRecW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handletype (HandleType);
  _trace_handle (HandleType, Handle);
  _trace_smallint (RecNumber);
  _trace_string_w (SqlState, SQL_NTS, NULL, TRACE_OUTPUT_SUCCESS);
  _trace_integer_p (NativeErrorPtr, TRACE_OUTPUT_SUCCESS);
  _trace_string_w (MessageText, BufferLength, TextLengthPtr,
      TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength);
  _trace_smallint_p (TextLengthPtr, TRACE_OUTPUT_SUCCESS);
}
예제 #4
0
void 
trace_SQLNativeSqlW (int trace_leave, int retcode,
  SQLHDBC		  hdbc,
  SQLWCHAR		* InStatementText,
  SQLINTEGER		  TextLength1,
  SQLWCHAR		* OutStatementText,
  SQLINTEGER		  BufferLength,
  SQLINTEGER		* TextLength2Ptr)
{
  SQLSMALLINT len = 0;

  if (TextLength2Ptr)
    len = *TextLength2Ptr;

  /* Trace function */
  _trace_print_function (en_NativeSqlW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_DBC, hdbc);
  _trace_string_w (InStatementText, TextLength1, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLINTEGER", TextLength1);
  _trace_string_w (OutStatementText, BufferLength, &len, TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLINTEGER", BufferLength);
  _trace_integer_p (TextLength2Ptr, TRACE_OUTPUT_SUCCESS);
}
예제 #5
0
void
trace_SQLStatisticsW (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLWCHAR    		* szTableQualifier,
  SQLSMALLINT		  cbTableQualifier,
  SQLWCHAR    		* szTableOwner,
  SQLSMALLINT		  cbTableOwner,
  SQLWCHAR    		* szTableName,
  SQLSMALLINT		  cbTableName,
  SQLUSMALLINT		  fUnique,
  SQLUSMALLINT		  fAccuracy)
{
  /* Trace function */
  _trace_print_function (en_Statistics, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);
  _trace_string_w (szTableQualifier, cbTableQualifier, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableQualifier);
  _trace_string_w (szTableOwner, cbTableOwner, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableOwner);
  _trace_string_w (szTableName, cbTableName, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableName);
  _trace_stats_unique (fUnique);
  _trace_stats_accuracy (fAccuracy);
}
예제 #6
0
void
trace_SQLDriversW (int trace_leave, int retcode,
  SQLHENV		  EnvironmentHandle,
  SQLUSMALLINT		  Direction,
  SQLWCHAR		* DriverDescription,
  SQLSMALLINT		  BufferLength1,
  SQLSMALLINT		* DescriptionLengthPtr,
  SQLWCHAR		* DriverAttributes,
  SQLSMALLINT		  BufferLength2,
  SQLSMALLINT		* AttributesLengthPtr)
{
  /* Trace function */
  _trace_print_function (en_DriversW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_ENV, EnvironmentHandle);
  _trace_direction (Direction);
  _trace_string_w (DriverDescription, BufferLength1, DescriptionLengthPtr,
      TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength1);
  _trace_smallint_p (DescriptionLengthPtr, TRACE_OUTPUT_SUCCESS);
  _trace_string_w (DriverAttributes, BufferLength2, AttributesLengthPtr,
      TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength2);
  _trace_smallint_p (AttributesLengthPtr, TRACE_OUTPUT_SUCCESS);
}
예제 #7
0
void
trace_SQLDataSourcesW (int trace_leave, int retcode,
  SQLHENV		  EnvironmentHandle,
  SQLUSMALLINT		  Direction,
  SQLWCHAR		* ServerName,
  SQLSMALLINT		  BufferLength1,
  SQLSMALLINT		* NameLength1Ptr,
  SQLWCHAR		* Description,
  SQLSMALLINT		  BufferLength2,
  SQLSMALLINT		* NameLength2Ptr)
{
  /* Trace function */
  _trace_print_function (en_DataSourcesW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_ENV, EnvironmentHandle);
  _trace_direction (Direction);
  _trace_string_w (ServerName, BufferLength1, NameLength1Ptr,
      TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength1);
  _trace_smallint_p (NameLength1Ptr, trace_leave);
  _trace_string_w (Description, BufferLength2, NameLength2Ptr,
      TRACE_OUTPUT_SUCCESS);
  _trace_stringlen ("SQLSMALLINT", BufferLength2);
  _trace_smallint_p (NameLength2Ptr, TRACE_OUTPUT_SUCCESS);
}
void
trace_SQLSpecialColumnsW (int trace_leave, int retcode,
  SQLHSTMT		  hstmt,
  SQLUSMALLINT		  fColType,
  SQLWCHAR    		* szTableQualifier,
  SQLSMALLINT		  cbTableQualifier,
  SQLWCHAR    		* szTableOwner,
  SQLSMALLINT		  cbTableOwner,
  SQLWCHAR    		* szTableName,
  SQLSMALLINT		  cbTableName,
  SQLUSMALLINT		  fScope,
  SQLUSMALLINT		  fNullable)
{
  /* Trace function */
  _trace_print_function (en_SpecialColumnsW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);
  _trace_spcols_type (fColType);
  _trace_string_w (szTableQualifier, cbTableQualifier, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableQualifier);
  _trace_string_w (szTableOwner, cbTableOwner, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableOwner);
  _trace_string_w (szTableName, cbTableName, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", cbTableName);
  _trace_spcols_scope (fScope);
  _trace_spcols_null (fNullable);
}
예제 #9
0
void
trace_SQLGetDescRecW (int trace_leave, int retcode,
  SQLHDESC		  DescriptorHandle,
  SQLSMALLINT		  RecNumber,
  SQLWCHAR		* Name,
  SQLSMALLINT		  BufferLength,
  SQLSMALLINT		* StringLengthPtr,
  SQLSMALLINT		* TypePtr,
  SQLSMALLINT		* SubTypePtr,
  SQLLEN		* LengthPtr,
  SQLSMALLINT		* PrecisionPtr,
  SQLSMALLINT		* ScalePtr,
  SQLSMALLINT		* NullablePtr)
{
  /* Trace function */
  _trace_print_function (en_GetDescRecW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_DESC, DescriptorHandle);
  _trace_smallint (RecNumber);
  _trace_string_w (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);
}
예제 #10
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);
}
예제 #11
0
void
trace_SQLBrowseConnectW (int trace_leave, int retcode,
  SQLHDBC		  ConnectionHandle,
  SQLWCHAR 		* InConnectionString,
  SQLSMALLINT		  StringLength1,
  SQLWCHAR		* OutConnectionString,
  SQLSMALLINT		  BufferLength,
  SQLSMALLINT		* StringLength2Ptr)
{
  /* Trace function */
  _trace_print_function (en_BrowseConnectW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_DBC, ConnectionHandle);
  _trace_string_w (InConnectionString, StringLength1, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLSMALLINT", StringLength1);
  _trace_string_w (OutConnectionString, BufferLength, StringLength2Ptr,
      TRACE_OUTPUT_SUCCESS);
  _trace_smallint (BufferLength);
  _trace_smallint_p (StringLength2Ptr, TRACE_OUTPUT_SUCCESS);
}
예제 #12
0
void
trace_SQLExecDirectW (int trace_leave, int retcode, 
  SQLHSTMT 		  hstmt,
  SQLWCHAR 		* szSqlStr,
  SQLINTEGER		  cbSqlStr)
{
  /* Trace function */
  _trace_print_function (en_ExecDirectW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, hstmt);
  _trace_string_w (szSqlStr, cbSqlStr, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLINTEGER", cbSqlStr);
}
예제 #13
0
파일: Prepare.c 프로젝트: MavenRain/iODBC
void
trace_SQLPrepareW (int trace_leave, int retcode,
  SQLHSTMT		  StatementHandle,
  SQLWCHAR 		* StatementText,
  SQLINTEGER		  TextLength)
{
  /* Trace function */
  _trace_print_function (en_PrepareW, trace_leave, retcode);

  /* Trace Arguments */
  _trace_handle (SQL_HANDLE_STMT, StatementHandle);
  _trace_string_w (StatementText, TextLength, NULL, TRACE_INPUT);
  _trace_stringlen ("SQLINTEGER", TextLength);
}
예제 #14
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);
}