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
CREATE TABLE with multiple COMPUTED columns results in invalid data stored in RDB$Computed_Source [CORE5357] #5630
Comments
Modified by: Sean Leyne (seanleyne)Attachment: Table_MultipleComputed.sql [ 13015 ] |
Modified by: Sean Leyne (seanleyne)description: If you execute the attached script and then run the following SQL, SELECT RDB$FIELD_NAME, RDB$COMPUTED_SOURCE you will see that the RDB$Computed_Source for the second COMPUTED column is invalid. This is causing problems when trying to extract the schema metadata to script (or compare same with another database) => If you execute the attached script and then run the following SQL, SELECT RDB$FIELD_NAME, RDB$COMPUTED_SOURCE you will see that the RDB$Computed_Source for the second COMPUTED column is invalid. This is causing problems when trying to extract the schema metadata to script (or compare same with another database) If you create the table without the COMPUTED columns and then add individually using ALTER TABLE statements, the RDB$Computed_Source is correct. |
Modified by: Sean Leyne (seanleyne)description: If you execute the attached script and then run the following SQL, SELECT RDB$FIELD_NAME, RDB$COMPUTED_SOURCE you will see that the RDB$Computed_Source for the second COMPUTED column is invalid. This is causing problems when trying to extract the schema metadata to script (or compare same with another database) If you create the table without the COMPUTED columns and then add individually using ALTER TABLE statements, the RDB$Computed_Source is correct. => If you execute the attached script and then run the following SQL,
you will see that the RDB$Computed_Source for the COMPUTED columns is completely invalid. This is causing problems when trying to extract the schema metadata to script (or compare same with another database) If you create the table without the COMPUTED columns and then add individually using ALTER TABLE statements, the RDB$Computed_Source is correct. |
Commented by: Arioch (arioch) This also happens when you add multiple computed by columns by a single ALTER TABLE statement (DSQL syntax allows it, to save on table format modifications counter). Just hit it when ironing out a legacy app with the following script. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ alter table T CREATE trigger T_biu_blocking_cxn for T ~~~~~~~~~~~~~~~~~~ Affected versions: 2.1.7, 2.5.8 Tested on FB3rc2 - there this issue seems fixed. |
Submitted by: Sean Leyne (seanleyne)
Attachments:
Table_MultipleComputed.sql
If you execute the attached script and then run the following SQL,
you will see that the RDB$Computed_Source for the COMPUTED columns is completely invalid.
This is causing problems when trying to extract the schema metadata to script (or compare same with another database)
If you create the table without the COMPUTED columns and then add individually using ALTER TABLE statements, the RDB$Computed_Source is correct.
The text was updated successfully, but these errors were encountered: