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

Allow using RDB$GET_CONTEXT for default value of field [CORE3463] #3824

Open
firebird-issue-importer opened this issue May 5, 2011 · 2 comments

Comments

@firebird-issue-importer
Copy link

@firebird-issue-importer firebird-issue-importer commented May 5, 2011

Submitted by: Maxim Kuzmin (cybermax)

Votes: 2

Example:
ALTER TABLE TABLE1 ALTER ID_CREATOR SET DEFAULT RDB$GET_CONTEXT ('USER_SESSION', 'ID_USER')

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 5, 2011

Commented by: Sean Leyne (seanleyne)

Have you tried:
ALTER TABLE TABLE1 ALTER ID_CREATOR SET DEFAULT (SELECT RDB$GET_CONTEXT ('USER_SESSION', 'ID_USER') FROM RDB$Database)

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 3, 2013

Commented by: @dyemanov

I believe we can allow all built-in functions as default values.

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