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
ISQL extract command lose COMPUTED BY field types [CORE5092] #5377
Comments
Modified by: @asfernandesassignee: Adriano dos Santos Fernandes [ asfernandes ] |
Modified by: @asfernandesstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 3.0 RC2 [ 10048 ] |
Commented by: @pavel-zotov > It's valid to specify a datatype for a computed field If one may to specify built-in data type then why it's not so for domains ?SQL> create domain dm_int int;
|
Commented by: @pavel-zotov One more question.
|
Modified by: @pavel-zotovAttachment: c5092_ddl_plus_output_plus_result_of_metadata_extraction.zip [ 12892 ] |
Commented by: @asfernandes Of course you're talking about different problems: Nothing about this ticket |
Commented by: @pavel-zotov This: The rest ( "computed by transportation") relates only to BLOB. I'll create two separate tickets - for this and for SHOW command. |
Commented by: @pavel-zotov > The rest ( "computed by transportation") relates only to BLOB. I'll create two separate tickets - for this and for SHOW command. |
Commented by: @pavel-zotov Adriano, I have one more question. SQL> recreate table test( T0 2016-02-01 16:21:00.2210 SQL> select t0, t1, t2 from test; Statement failed, SQLSTATE = 42000 I understand that last statement failed because EXTRACT() tried to evaluate day from STRING "now" rather than actual value of field 'T1' (which type is TIMESTAMP and is defined explicitly). But is it expected ? |
Modified by: @pavel-zotovstatus: Resolved [ 5 ] => Resolved [ 5 ] QA Status: No test => Done successfully |
Modified by: @pavel-zotovstatus: Resolved [ 5 ] => Closed [ 6 ] |
Commented by: @asfernandes Pavel, > I have one more question. A new ticket, please. Add this test to it too, please: create table t1 (n1 integer, c1 integer computed by (1.2)); select * from t1;
============ ============ select c1 || '' from t1; CONCATENATION1.2 |
Commented by: @pavel-zotov > A new ticket, please. Add this test to it too, please: CORE5097 // sorry, but I could not provide adequate subject for it... :-) |
Submitted by: @asfernandes
Attachments:
c5092_ddl_plus_output_plus_result_of_metadata_extraction.zip
It's valid to specify a datatype for a computed field:
create table t1 (
n1 integer,
n2 bigint computed by (1)
);
But ISQL extracts only the computed expression, which may change the field type:
create table t1 (
n1 integer,
n2 computed by (1)
);
Commits: fb7eca8 FirebirdSQL/fbt-repository@a598091
The text was updated successfully, but these errors were encountered: