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

Creating a column of type BLOB SUB_TYPE BINARY fails with a Token unknown [CORE5494] #5763

Closed
firebird-automations opened this issue Mar 4, 2017 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @mrotteveel

Is related to CORE5064

Executing the following create table

create table x (
blob1 blob sub_type binary
)

Leads to an exception: Dynamic SQL Error; SQL error code = -104; Token unknown - line 1, column 213; BINARY [SQLState:42000, ISC error code:335544634]

This works in Firebird 3 and earlier.

Workaround is to leave off `sub_type binary` or use `sub_type 0` instead.

Note that the following works, so it looks like this is introduced by the implementation of CORE5064:

create table x (
binary1 binary
)

Commits: cad0840 63eb729

@firebird-automations
Copy link
Collaborator Author

Modified by: @mrotteveel

Link: This issue is related to CORE5064 [ CORE5064 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @mrotteveel

description: Executing the following create table

create table x (
blob1 blob sub_type binary
)

Leads to an exception: Dynamic SQL Error; SQL error code = -104; Token unknown - line 1, column 213; BINARY [SQLState:42000, ISC error code:335544634]

This works in Firebird 3 and earlier.

Workaround is to leave of `sub_type binary` or use `sub_type 0` instead.

Note that the following works, so it looks like this is introduced by the implementation of CORE5064:

create table x (
binary1 binary
)

=>

Executing the following create table

create table x (
blob1 blob sub_type binary
)

Leads to an exception: Dynamic SQL Error; SQL error code = -104; Token unknown - line 1, column 213; BINARY [SQLState:42000, ISC error code:335544634]

This works in Firebird 3 and earlier.

Workaround is to leave off `sub_type binary` or use `sub_type 0` instead.

Note that the following works, so it looks like this is introduced by the implementation of CORE5064:

create table x (
binary1 binary
)

@firebird-automations
Copy link
Collaborator Author

Commented by: @aafemt

May be we really should make "binary" non-reserved word and ignore parser conflicts...

@firebird-automations
Copy link
Collaborator Author

Commented by: @mrotteveel

Small note: the line and column index is off, because I copied the exception message from a larger create table statement.

@firebird-automations
Copy link
Collaborator Author

Commented by: @mrotteveel

PR: #85

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 4.0 Alpha 1 [ 10731 ]

assignee: Mark Rotteveel [ avalanche1979 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Done successfully

@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