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

Get a whole record as a single object [CORE661] #1027

Open
firebird-automations opened this issue Apr 26, 2005 · 3 comments
Open

Get a whole record as a single object [CORE661] #1027

firebird-automations opened this issue Apr 26, 2005 · 3 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: konstbel (konstbel)

SFID: 1190233#⁠
Submitted By: konstbel

The problem is to track changes/deletes in database.
If we need to keep old values of some record, we have to
copy them in some log table with the same structure or
construct some XML or INI-like structure inside
BEFORE * trigger and put it into the BLOB of log table.
But if we change table structure, we'll have to also
change log table and triggers.
I think it is good to make this function internal: return the
whole record in any reasonable format, ready to put into
varchar or BLOB.
The syntax may be
GET_AS_RECORD(<fields_list>) or
GET_AS_RECORD(OLD.*)

@firebird-automations
Copy link
Collaborator Author

Modified by: Alice F. Bird (firebirds)

description: SFID: 1190233#⁠
Submitted By: konstbel

The problem is to track changes/deletes in database.
If we need to keep old values of some record, we have to
copy them in some log table with the same structure or
construct some XML or INI-like structure inside
BEFORE * trigger and put it into the BLOB of log table.
But if we change table structure, we'll have to also
change log table and triggers.
I think it is good to make this function internal: return the
whole record in any reasonable format, ready to put into
varchar or BLOB.
The syntax may be
GET_AS_RECORD(<fields_list>) or
GET_AS_RECORD(OLD.*)

=>

SFID: 1190233#⁠
Submitted By: konstbel

The problem is to track changes/deletes in database.
If we need to keep old values of some record, we have to
copy them in some log table with the same structure or
construct some XML or INI-like structure inside
BEFORE * trigger and put it into the BLOB of log table.
But if we change table structure, we'll have to also
change log table and triggers.
I think it is good to make this function internal: return the
whole record in any reasonable format, ready to put into
varchar or BLOB.
The syntax may be
GET_AS_RECORD(<fields_list>) or
GET_AS_RECORD(OLD.*)

@firebird-automations
Copy link
Collaborator Author

Commented by: ramengo (ramengo)

This should be achieved with release 2.1 new LIST function

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 10685 ] => Firebird [ 15062 ]

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

No branches or pull requests

1 participant