Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sql/databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ type TriggerDefinition struct {
// SqlMode holds the SQL_MODE that was in use when this trigger was originally defined. It contains information
// needed for how to parse the trigger's SQL, such as whether ANSI_QUOTES mode is enabled.
SqlMode string
// SchemaName is the name of the schema of the trigger, for databases that support schemas.
SchemaName string
}

// TemporaryTableDatabase is a database that can query the session (which manages the temporary table state) to
Expand Down Expand Up @@ -311,6 +313,8 @@ type ViewDefinition struct {
TextDefinition string
CreateViewStatement string
SqlMode string
// SchemaName is the name of the schema of the view, for databases that support schemas.
SchemaName string
}

// GetTableInsensitive implements a case-insensitive map lookup for tables keyed off of the table name.
Expand Down
1 change: 1 addition & 0 deletions sql/procedures.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type StoredProcedureDetails struct {
CreatedAt time.Time // The time that the stored procedure was created.
ModifiedAt time.Time // The time of the last modification to the stored procedure.
SqlMode string // The SQL_MODE when this procedure was defined.
SchemaName string // The name of the schema that this stored procedure belongs to, for databases that support schemas.
}

// ExternalStoredProcedureDetails are the details of an external stored procedure. Compared to standard stored
Expand Down