::DEBUG_SOURCES

The ::DEBUG_SOURCES table holds source code referenced by the ::DEBUG_STACK table.

Definition

Field Name

Field Type

Field Size

Description

source_id

Autoinc

4

Primary key of the table

object_id

Integer

4

Non-zero if the source code is from a database object such as a trigger, stored procedure or user defined function.

parent_name

CiChar

200

Parent name of the object. This column may contain null values. For triggers, the parent name is the table name. For user defined functions, the parent name is the package name.

object_name

CiChar

200

Name of the object. May be null if the source code is not from a database object

Source

Memo

 

SQL script. It only contains the body of the function or stored procedure. This column may be null if the source is not available or if the user does not have permission to view the source.

ref_count

Integer

4

The number of times this object is referenced. It is not used at the moment.

object_type

Short

2

Non-zero if the source script is from a database object. Possible values are ADS_DD_FUNCTION_OBJECT, ADS_DD_PROCEDURE_OBJECT, or ADS_DD_TRIGGER_OBJECT. These constants are defined in the header file ace.h.

Remark

The ::DEBUG_SOURCES table is referenced by the ::DEBUG_STACK table. The value in the "source" column contains the actual source code of the SQL script being executed.