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

Alter computed field type does not work [CORE5093] #5378

Closed
firebird-automations opened this issue Jan 31, 2016 · 4 comments
Closed

Alter computed field type does not work [CORE5093] #5378

firebird-automations opened this issue Jan 31, 2016 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @asfernandes

Field changes from BIGINT to INTEGER even when specifying BIGINT in the ALTER command:

SQL> create table t2 (n1 integer, n2 bigint computed by (1));
SQL> set sqlda_display on;
SQL> select * from t2;

INPUT message field count: 0

OUTPUT message field count: 2
01: sqltype: 496 LONG Nullable scale: 0 subtype: 0 len: 4
: name: N1 alias: N1
: table: T2 owner: SYSDBA
02: sqltype: 580 INT64 Nullable scale: 0 subtype: 0 len: 8
: name: N2 alias: N2
: table: T2 owner: SYSDBA
SQL>
SQL> commit;
SQL>
SQL> alter table t2 alter n2 type bigint computed by (2);
SQL>
SQL> select * from t2;

INPUT message field count: 0

OUTPUT message field count: 2
01: sqltype: 496 LONG Nullable scale: 0 subtype: 0 len: 4
: name: N1 alias: N1
: table: T2 owner: SYSDBA
02: sqltype: 496 LONG Nullable scale: 0 subtype: 0 len: 4
: name: N2 alias: N2
: table: T2 owner: SYSDBA

Commits: 36ac140 FirebirdSQL/fbt-repository@8f92253

====== Test Details ======

NB. It is possible that this test need to be adjusted soon for FB 3.0, because current SQLDA
output is not affected by changing of field character set (adding or removing or updating).
Sent letter to Adriano, 02-feb-2015 15:25, waiting for reply.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 RC2 [ 10048 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Done successfully

Test Details: NB. It is possible that this test need to be adjusted soon for FB 3.0, because current SQLDA
output is not affected by changing of field character set (adding or removing or updating).
Sent letter to Adriano, 02-feb-2015 15:25, waiting for reply.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

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

2 participants