Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

G-7230 - make clear that constants in package specifications are okay #79

Closed
Assignees
kibeha
Labels
enhancementNew feature or request
Milestone
@PhilippSalvisberg

Description

@PhilippSalvisberg

The bad example in G-7230 uses constants. In this context it is fine to make them private. However there are other constants should be public. Here an example from myrelated blog post:

CREATEOR REPLACE PACKAGE const_boolean AUTHID DEFINER IS   co_true  CONSTANTINTEGER :=1;   co_false CONSTANTINTEGER :=0;END const_boolean;/

The guideline should be changed to make clear that this is good.

Furthermore the PL/SQL cop validator should be amended to ignore constant declarations in package specifications.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp