void trace_SQLConnect (int trace_leave, int retcode, SQLHDBC hdbc, SQLCHAR * szDSN, SQLSMALLINT cbDSN, SQLCHAR * szUID, SQLSMALLINT cbUID, SQLCHAR * szAuthStr, SQLSMALLINT cbAuthStr) { /* Trace function */ _trace_print_function (en_Connect, trace_leave, retcode); /* Hide plaintext passwords */ szAuthStr = (SQLCHAR *) "****"; /* Trace Arguments */ _trace_handle (SQL_HANDLE_DBC, hdbc); _trace_string (szDSN, cbDSN, NULL, TRACE_INPUT); _trace_stringlen ("SQLSMALLINT", cbDSN); _trace_string (szUID, cbUID, NULL, TRACE_INPUT); _trace_stringlen ("SQLSMALLINT", cbDSN); _trace_string (szAuthStr, SQL_NTS, NULL, TRACE_INPUT); _trace_stringlen ("SQLSMALLINT", cbAuthStr); }
void trace_SQLTables (int trace_leave, int retcode, SQLHSTMT hstmt, SQLCHAR * szTableQualifier, SQLSMALLINT cbTableQualifier, SQLCHAR * szTableOwner, SQLSMALLINT cbTableOwner, SQLCHAR * szTableName, SQLSMALLINT cbTableName, SQLCHAR * szTableType, SQLSMALLINT cbTableType) { /* 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); _trace_string (szTableType, cbTableType, NULL, TRACE_INPUT); _trace_stringlen ("SQLSMALLINT", cbTableType); }
void trace_SQLNativeSql (int trace_leave, int retcode, SQLHDBC hdbc, SQLCHAR * InStatementText, SQLINTEGER TextLength1, SQLCHAR * OutStatementText, SQLINTEGER BufferLength, SQLINTEGER * TextLength2Ptr) { SQLSMALLINT len = 0; if (TextLength2Ptr) len = *TextLength2Ptr; /* Trace function */ _trace_print_function (en_NativeSql, trace_leave, retcode); /* Trace Arguments */ _trace_handle (SQL_HANDLE_DBC, hdbc); _trace_string (InStatementText, TextLength1, NULL, TRACE_INPUT); _trace_stringlen ("SQLINTEGER", TextLength1); _trace_string (OutStatementText, BufferLength, &len, TRACE_OUTPUT_SUCCESS); _trace_stringlen ("SQLINTEGER", BufferLength); _trace_integer_p (TextLength2Ptr, TRACE_OUTPUT_SUCCESS); }
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); }
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); }
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); }
void trace_SQLColumnPrivilegesW (int trace_leave, int retcode, SQLHSTMT hstmt, SQLWCHAR * szTableQualifier, SQLSMALLINT cbTableQualifier, SQLWCHAR * szTableOwner, SQLSMALLINT cbTableOwner, SQLWCHAR * szTableName, SQLSMALLINT cbTableName, SQLWCHAR * szColumnName, SQLSMALLINT cbColumnName) { /* Trace function */ _trace_print_function (en_ColumnPrivilegesW, 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 (szColumnName, cbColumnName, NULL, TRACE_INPUT); _trace_stringlen ("SQLSMALLINT", cbColumnName); }
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); }
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_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); }
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); }
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); }
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); }
void trace_SQLProceduresW (int trace_leave, int retcode, SQLHSTMT hstmt, SQLWCHAR * szProcQualifier, SQLSMALLINT cbProcQualifier, SQLWCHAR * szProcOwner, SQLSMALLINT cbProcOwner, SQLWCHAR * szProcName, SQLSMALLINT cbProcName) { /* Trace function */ _trace_print_function (en_ProceduresW, trace_leave, retcode); /* Trace Arguments */ _trace_handle (SQL_HANDLE_STMT, hstmt); _trace_string_w (szProcQualifier, cbProcQualifier, NULL, TRACE_INPUT); _trace_stringlen ("SQLSMALLINT", cbProcQualifier); _trace_string_w (szProcOwner, cbProcOwner, NULL, TRACE_INPUT); _trace_stringlen ("SQLSMALLINT", cbProcOwner); _trace_string_w (szProcName, cbProcName, NULL, TRACE_INPUT); _trace_stringlen ("SQLSMALLINT", cbProcName); }
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); }
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); }
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); }