Skip to content

Conversation

@mweisgut
Copy link
Contributor

@mweisgut mweisgut commented Jan 7, 2022

PR #177 added additional column types, including SMALLINT. However, SMALLINT was not added as a token for the lexical analysis (flex scanner). This PR adds SMALLINT as a token and extends a test case so that all column types are tested with a CREATE TABLE SQL statement.

Furthermore, this PR eliminates the ColumnSpecification struct, which was used before to store precision and scale information for the DECIMAL or TIME column types. Similar to the ColumnType::length, precision and scale are now member variables of ColumnType.

@mweisgut mweisgut added the WIP label Jan 7, 2022
@mweisgut mweisgut changed the title CreateTable: Add SMALLINT | Remove ColumnSpecification CreateTable: add SMALLINT | Remove ColumnSpecification Jan 7, 2022
@mweisgut mweisgut removed the WIP label Jan 8, 2022
@mweisgut mweisgut requested review from dey4ss and klauck January 8, 2022 13:52
Copy link
Contributor

@klauck klauck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I have added minor improvement proposals as comments.

@mweisgut mweisgut merged commit a621176 into master Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants