Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use CHECK/NOT NULL constraint in PSQL parameters or variables [CORE1652] #2076

Open
firebird-issue-importer opened this issue Dec 13, 2007 · 3 comments

Comments

@firebird-issue-importer

Submitted by: Martijn Tonies (martijntonies)

Votes: 1

Now that Domains have entered the domain (pun intended) of
PSQL, would it be possible to do things like:

create procedure myproc1 (i int check (value between 1 and 10), .. )
...
declare variable v_bool char(1) check (value in ('T', 'F') or value is
NULL);

I think this would enhance the current PSQL even more and allows for
better checking of values inside procedural code.

The ability to put constraints on input (and output) parameters and variables
could improve the code people write. I think it would be a nice feature.

Perhaps in Firebird 2.5 in combination with SQL based Stored Functions? ;)

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 13, 2007

Modified by: Martijn Tonies (martijntonies)

description: Now that Domains have entered the domain (pun intended) of
PSQL, would it be possible to do things like:

create procedure myproc1 (i int check (value between 1 and 10), .. )
...
declare variable v_bool char(1) check (value in ('T', 'F') or value is
NULL);

I think this would enhance the current PSQL even more and allows for
better checking of values inside procedural code.

The ability to put constraints on input (and output) parameters and variables
could improve the code people write. I think it would be a nice feature.

=>

Now that Domains have entered the domain (pun intended) of
PSQL, would it be possible to do things like:

create procedure myproc1 (i int check (value between 1 and 10), .. )
...
declare variable v_bool char(1) check (value in ('T', 'F') or value is
NULL);

I think this would enhance the current PSQL even more and allows for
better checking of values inside procedural code.

The ability to put constraints on input (and output) parameters and variables
could improve the code people write. I think it would be a nice feature.

Perhaps in Firebird 2.5 in combination with SQL based Stored Functions? ;)

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 28, 2008

Modified by: @pcisar

Workflow: jira [ 13650 ] => Firebird [ 13982 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 24, 2019

Commented by: rdb_dev (rdb_dev)

Discussion in Russian:
http://www.sql.ru/forum/1317347-1/sto-tysyach-pochemu-tak-realizovano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant