Report name and fact/max length of name of database objects when length 
exceeding
---------------------------------------------------------------------------------

                 Key: CORE-5903
                 URL: http://tracker.firebirdsql.org/browse/CORE-5903
             Project: Firebird Core
          Issue Type: Improvement
            Reporter: Maxim Kuzmin
            Priority: Minor


When creating various object of database and length thier names exceeding 
maximal, get error.

Example for package:
CREATE OR ALTER PACKAGE VERY_VERY_LONGEST_NAME_OF_PACKAGE
AS
BEGIN
 
END

Invalid token.
Dynamic SQL Error.
SQL error code = -104.
Name longer than database column size.

Example for table:
CREATE TABLE VERY_VERY_LONGEST_NAME_OF_TABLE1 (
    NEW_FIELD INTEGER)

Invalid token.
Dynamic SQL Error.
SQL error code = -104.
Name longer than database column size.

Example for exception:
CREATE EXCEPTION VERY_VERY_LONGEST_NAME_OF_EXCEPTION

Invalid token.
Dynamic SQL Error.
SQL error code = -104.
Name longer than database column size.

>From the message, neither the object type, nor its name, nor its actual length 
>is understood. Sometimes, in executing script or other work, it's causes 
>inconvenience.
Propose extending error message like this:

Invalid token.
Dynamic SQL Error.
SQL error code = -104.
Name longer than database column size.
Length name of package "VERY_VERY_LONGEST_NAME_OF_PACKAGE" exceed maximum 31 
chars on 2 (fact 33);

Invalid token.
Dynamic SQL Error.
SQL error code = -104.
Name longer than database column size.
Length name of table "VERY_VERY_LONGEST_NAME_OF_TABLE1" exceed maximum 31 chars 
on 1 (fact 32);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to