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

Firebird 2.5 allows to declare variables within Stored Procedures with more than 31 characters [CORE6047] #6297

Closed
firebird-automations opened this issue Apr 11, 2019 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @luronumen

ACTUAL RESULT:
- Firebird 2.5 allows to declare variables within Stored Procedures with more than 31 characters

EXPECTED RESULT:
- Firebird 2.5 should not allows to declare variables within Stored Procedures with more than 31 characters like it is not allowed on Firebird 3.0:
Message: isc_dsql_prepare failed

SQL Message : -104
Invalid token

Engine Code : 335544569
Engine Message :
Dynamic SQL Error
SQL error code = -104
Name longer than database column size

- This issue needs to be fixed to maintain the compatibility of the Firebird 2.5 Metadata script extracted with the Firebird 3.0

STEPS TO REPRODUCE THE ISSUE
1- Create a Firebird SQL 2.5 database
2- Try to create a Stored Procedure with a declareted variable within Stored Procedures with more than 31 characters (e.g.: V_TOTAL_CROSS_WORKING_TIME_DAY NUMERIC)
CREATE PROCEDURE C_SERVICE_BTC_PRIMAVERA (UID VARCHAR(32) CHARACTER SET WIN1252,
FIRST_DAY DATE,
LAST_DAY DATE,
TEAM VARCHAR(32) CHARACTER SET WIN1252)
RETURNS (CALENDAR DATE,
SITE VARCHAR(32) CHARACTER SET WIN1252,
PROJECT VARCHAR(32) CHARACTER SET WIN1252,
PRODUCT VARCHAR(32) CHARACTER SET WIN1252,
REGION VARCHAR(32) CHARACTER SET WIN1252,
WORKING_TIME NUMERIC(18, 4))
AS
DECLARE V_TOTAL_WORKING_TIME_DAY NUMERIC(18,9);
DECLARE V_TOTAL_CROSS_WORKING_TIME_DAY NUMERIC(18,9);
DECLARE V_TOTAL_PRODUCT_WORKING_TIME_DAY NUMERIC(18,9);
DECLARE V_VALID_WORKING_TIME_DAY NUMERIC(18,9);
BEGIN
END^

@firebird-automations
Copy link
Collaborator Author

Commented by: Omacht András (aomacht)

Hi!
Please DO NOT break 2.5 applications with this request.
It would be much better to have no limitations in 3.0.

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

The problem is fixed in 3.0 and 2.5 will not be changed.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Won't Fix [ 2 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

1 participant