| Goal | Find columns of base tables that have default value CURRENT_USER. |
|---|---|
| Notes | The query finds default values that are associated directly with a base table column as well as default values that are specified through a domain. The query does not find default values of domains that are not associated with any table. |
| Type | Problem detection Each row in the result could represent a flaw in the design |
| Reliability | Medium Medium number of false-positive results |
| License | MIT (opens in new tab) |
| Fixing Suggestion | Use instead reference to function SESSION_USER. |
| Data Source | INFORMATION_SCHEMA only |
| SQL Query |
|
Categories
This query is classified under the following categories:
Default value
Queries of this catergory provide information about the use of default values.
| Name | Description |
|---|---|
| Default value | Queries of this catergory provide information about the use of default values. |