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
Server adds "NOT" at the end of default value for the TIMESTAMP field [CORE2430] #2846
Comments
Commented by: @hvlad Before the change end of default's source was determined using end_default_opt rule which is used lex.last_token. |
Commented by: @hvlad The change metioned above is http://firebird.cvs.sourceforge.net/firebird/firebird2/src/dsql/parse.y?r1=1.264&r2=1.265 |
Modified by: @dyemanovassignee: Dmitry Yemanov [ dimitr ] |
Modified by: @dyemanovstatus: Open [ 1 ] => In Progress [ 3 ] |
Modified by: @dyemanovVersion: 2.5 Alpha 1 [ 10224 ] summary: Server add "NOT" at the end of default value for the TIMESTAMP field => Server adds "NOT" at the end of default value for the TIMESTAMP field |
Modified by: @dyemanovstatus: In Progress [ 3 ] => Open [ 1 ] |
Modified by: @dyemanovstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 2.5 RC1 [ 10300 ] |
Commented by: @pcisar QA test added. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Modified by: @pavel-zotovQA Status: No test |
Modified by: @pavel-zotovQA Status: No test => Done successfully |
Submitted by: Sergey Mereutsa (green_dq)
Is related to QA400
When you execute this script:
CREATE TABLE T1 (
F1 BIGINT NOT NULL,
F2 BIGINT NOT NULL,
F3 TIMESTAMP DEFAULT current_timestamp NOT NULL
);
ALTER TABLE T1 ADD CONSTRAINT PK_T1 PRIMARY KEY (F1, F2);
and show table t1 (in isql), you can see, that "NOT" word was added to the default timestamp value:
Database: localhost/3055:universe, User: dqdev
SQL> CREATE TABLE T1 (
CON> F1 BIGINT NOT NULL,
CON> F2 BIGINT NOT NULL,
CON> F3 TIMESTAMP DEFAULT current_timestamp NOT NULL
CON> );
SQL>
SQL> ALTER TABLE T1 ADD CONSTRAINT PK_T1 PRIMARY KEY (F1, F2);
SQL> GRANT ALL ON T1 TO DQDEV WITH GRANT OPTION;
SQL> commit;
SQL> exit;
Database: localhost/3055:universe, User: dqdev
SQL> show table t1;
F1 BIGINT Not Null
F2 BIGINT Not Null
F3 TIMESTAMP Not Null DEFAULT current_timestamp NOT
CONSTRAINT PK_T1:
Primary key (F1, F2)
P.S.
Vlad indicated, that this bug was added by Dmitry Emanov, when fixed this: CORE1512
Commits: d04031e
The text was updated successfully, but these errors were encountered: